API Error (Connection error.) · Retrying in 1 seconds…...
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 5 seconds… (attempt 4/10)
⎿ TypeError (fetch failed)
⎿ API Error (Connection error.) · Retrying in 10 seconds… (attempt 5/10)
⎿ TypeError (fetch failed)
⎿ API Error (Connection error.) · Retrying in 18 seconds… (attempt 6/10)
⎿ TypeError (fetch failed)
⎿ API Error (Connection error.) · Retrying in 40 seconds… (attempt 7/10)
⎿ TypeError (fetch failed)
⎿ API Error (Connection error.) · Retrying in 33 seconds… (attempt 8/10)
⎿ TypeError (fetch failed)
⎿ API Error (Connection error.) · Retrying in 39 seconds… (attempt 9/10)
⎿ TypeError (fetch failed)
⎿ API Error (Connection error.) · Retrying in 40 seconds… (attempt 10/10)
⎿ TypeError (fetch failed) claude code keeps failing because of this API error it won't even talk to me anymore
Environment Info
- Platform: darwin
- Terminal: cursor
- Version: 1.0.90
- Feedback ID:
Errors
[{"error":"Error: read ECONNRESET\n at Tl.from (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:684:7205)\n at FK.G1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:687:10122)\n at FK.emit (node:events:520:35)\n at FK.emit (node:domain:489:12)\n at ml1.<computed> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:64:1161)\n at ClientRequest.emit (node:events:508:28)\n at ClientRequest.emit (node:domain:489:12)\n at emitErrorEvent (node:_http_client:107:11)\n at TLSSocket.socketErrorListener (node:_http_client:574:5)\n at TLSSocket.emit (node:events:508:28)\n at GB1.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:689:2088)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Jg9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:690:38582)\n at async Z (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:690:37644)\n at async Fg9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:690:38756)\n at async Kg9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:690:39310)","timestamp":"2025-08-26T00:38:37.166Z"},{"error":"Error: Connection error.\n at HP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:4442)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-26T00:41:38.263Z"},{"error":"Error: Connection error.\n at HP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:4442)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-26T00:55:35.940Z"},{"error":"SyntaxError: Unexpected token 'A', \"API Error:\"... is not valid JSON\n at JSON.parse (<anonymous>)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:712:9932\n at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:671:13339)\n at dn2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1058:1992)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-26T00:55:35.944Z"},{"error":"Error: Connection error.\n at HP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:4442)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async qZ1.showErrors (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:27491)\n at async qZ1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:16486)\n at async qBB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:27321)\n at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:22275\n at async XD0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:3656)\n at async Ee (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:22245)\n at async DE (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3408:1446)\n at async e1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3441:3218)","timestamp":"2025-08-26T00:55:39.680Z"},{"error":"Error: Connecti
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗