claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Persistent Anthropic API Connection Failures with Exponential Backoff Retry

Open merlinoalbus opened this issue 1 year ago • 6 comments

Bug Description ⎿ API Error (Connection error.) · Retrying in 1 seconds… (attempt 1/10) ⎿ TypeError (fetch failed)
⎿ API Error (Connection error.) · Retrying in 1 seconds… (attempt 2/10) ⎿ TypeError (fetch failed)
⎿ API Error (Connection error.) · Retrying in 2 seconds… (attempt 3/10) ⎿ TypeError (fetch failed)
⎿ API Error (Connection error.) · Retrying in 4 seconds… (attempt 4/10) ⎿ TypeError (fetch failed)
⎿ API Error (Connection error.) · Retrying in 8 seconds… (attempt 5/10) ⎿ TypeError (fetch failed)
⎿ API Error (Connection error.) · Retrying in 16 seconds… (attempt 6/10) ⎿ TypeError (fetch failed)
⎿ API Error (Connection error.) · Retrying in 39 seconds… (attempt 7/10) ⎿ TypeError (fetch failed)

Environment Info

  • Platform: win32
  • Terminal: vscode
  • Version: 1.0.81
  • Feedback ID:

Errors

[{"error":"AggregateError\n    at Gp.from (file:///C:/Users/rober/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:690:7205)\n    at XV.K1 (file:///C:/Users/rober/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:693:10122)\n    at XV.emit (node:events:530:35)\n    at XV.emit (node:domain:489:12)\n    at Ji1.<computed> (file:///C:/Users/rober/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:64:1161)\n    at ClientRequest.emit (node:events:518:28)\n    at ClientRequest.emit (node:domain:489:12)\n    at emitErrorEvent (node:_http_client:104:11)\n    at TLSSocket.socketErrorListener (node:_http_client:518:5)\n    at TLSSocket.emit (node:events:518:28)\n    at nB1.request (file:///C:/Users/rober/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:695:2088)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async VhQ (file:///C:/Users/rober/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:696:38329)\n    at async Z (file:///C:/Users/rober/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:696:37391)\n    at async ChQ (file:///C:/Users/rober/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:696:38503)\n    at async zhQ (file:///C:/Users/rober/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:696:39057)","timestamp":"2025-08-14T22:59:04.897Z"},{"error":"AggregateError\n    at Gp.from (file:///C:/Users/rober/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:690:7205)\n    at XV.K1 (file:///C:/Users/rober/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:693:10122)\n    at XV.emit (node:events:518:28)\n    at XV.emit (node:domain:489:12)\n    at Ji1.<computed> (file:///C:/Users/rober/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:64:1161)\n    at ClientRequest.emit (node:events:518:28)\n    at ClientRequest.emit (node:domain:489:12)\n    at emitErrorEvent (node:_http_client:104:11)\n    at TLSSocket

Note: Error logs were truncated.

merlinoalbus avatar Aug 14 '25 23:08 merlinoalbus

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/5799
  2. https://github.com/anthropics/claude-code/issues/5279
  3. https://github.com/anthropics/claude-code/issues/3131

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Aug 14 '25 23:08 github-actions[bot]

Since I'm not receiving any response to the bug reports I open... which remain pending without anyone acknowledging or following up except for the bot, every time I encounter the problem in the system, I will open a new bug report... It's shameful and scandalous that first the API problems and now this are not being taken seriously. The system has been practically unusable for days... and I have a €200 per month subscription... to use Claude, not to go crazy dealing with continuous bugs.

merlinoalbus avatar Aug 17 '25 17:08 merlinoalbus

Since I'm not receiving any response to the bug reports I open... which remain pending without anyone acknowledging or following up except for the bot, every time I encounter the problem in the system, I will open a new bug report... It's shameful and scandalous that first the API problems and now this are not being taken seriously. The system has been practically unusable for days... and I have a €200 per month subscription... to use Claude, not to go crazy dealing with continuous bugs.

merlinoalbus avatar Aug 23 '25 14:08 merlinoalbus

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 04 '25 10:12 github-actions[bot]

This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

github-actions[bot] avatar Jan 04 '26 10:01 github-actions[bot]

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Jan 11 '26 14:01 github-actions[bot]