[Bug] Anthropic API Error: Socket connection closed unexpectedly (401)

Resolved 💬 2 comments Opened Jun 24, 2026 by akingundogdu Closed Jun 28, 2026

Bug Description
I'm seeing this message mostly everyday, after the version .172, "Please run /login · API Error: 401 The socket connection was closed unexpectedly. For more information, pass verbose: true in the second argument to fetch()" I don't understand why can you guys please fix this problem?

Environment Info

  • Platform: darwin
  • Terminal: xterm-256color
  • Version: 2.1.185
  • Feedback ID: e60449e1-75f1-4f30-bae3-43d339056da4

Errors

[{"error":"Error: 401 The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()\n    at generate (/$bunfs/root/src/entrypoints/cli.js:12:68961)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:52:7688)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-06-24T10:19:24.195Z"}]

View original on GitHub ↗

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