Skip to content

[Bug] Socket connection closed unexpectedly during Anthropic API request #51107

Description

@eborges-git

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

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.1.113
  • Feedback ID: 3197ac90-24a4-4dce-b6e9-fa19eac0473d

Errors

[{"error":"Error: 1: Command failed with ERR_STREAM_PREMATURE_CLOSE: code --force --install-extension anthropic.claude-code\nPremature close \n    at Qf1 (/$bunfs/root/src/entrypoints/cli.js:1573:4045)\n    at async df1 (/$bunfs/root/src/entrypoints/cli.js:1573:1435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T11:48:21.534Z"},{"error":"The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()","timestamp":"2026-04-20T11:57:25.023Z"}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions