[Bug] Anthropic API Error: Socket connection closed unexpectedly

Resolved 💬 3 comments Opened Apr 15, 2026 by eborges-git Closed Apr 19, 2026

Bug Description
API Error: The socket connection was closed unexpectedly. For more information, pass verbose: true in the second argument to fetch() -- this keeps repeating

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.1.110
  • Feedback ID: a326453c-a532-4864-8aa6-59511198362c

Errors

[{"error":"Error: 1: Command failed with ERR_STREAM_PREMATURE_CLOSE: code --force --install-extension anthropic.claude-code\nPremature close \n    at pA1 (/$bunfs/root/src/entrypoints/cli.js:1575:4045)\n    at async uA1 (/$bunfs/root/src/entrypoints/cli.js:1575:1435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T23:43:29.052Z"}]

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗