Persistent Anthropic API Connection Failures with Exponential Backoff Retry
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.
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗