Connection Timeout: Persistent API Request Failure After 10 Retry Attempts

Resolved 💬 3 comments Opened Jun 20, 2025 by fersot Closed Nov 30, 2025

Bug Description
API Error (Connection error.) · Retrying in 40 seconds… (attempt 10/10)
⎿ TypeError (fetch failed)

Environment Info

  • Platform: linux
  • Terminal: vscode
  • Version: 1.0.31
  • Feedback ID:

Errors

[{"error":"Error: Request was aborted.\n    at yw.makeRequest (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1317:3784)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-06-20T21:22:46.093Z"},{"error":"Error: Connection error.\n    at yw.makeRequest (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1317:4386)\n    at async N11.showErrors (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1959:18554)\n    at async N11 (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1492:703)\n    at async pU2 (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1959:18400)\n    at async file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1959:13529\n    at async Oe1 (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1959:4695)\n    at async Wu (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1959:13499)\n    at async uO (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1837:7103)\n    at async uO (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1837:9261)\n    at async uO (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1837:9261)","timestamp":"2025-06-20T21:27:21.982Z"},{"error":"Error: Connection error.\n    at yw.makeRequest (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1317:4386)\n    at async N11.showErrors (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1959:18554)\n    at async N11 (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1492:703)\n    at async pU2 (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1959:18400)\n    at async file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1959:13529\n    at async Oe1 (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1959:4695)\n    at async Wu (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1959:13499)\n    at async uO (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1837:7103)\n    at async wB (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2468:2575)","timestamp":"2025-06-20T21:28:45.017Z"},{"error":"Error: Connection error.\n    at yw.makeRequest (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1317:4386)\n    at async N11.showErrors (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1959:18554)\n    at async N11 (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1492:703)\n    at async pU2 (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1959:18400)\n    at async file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1959:13529\n    at async Oe1 (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1959:4695)\n    at async Wu (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1959:13499)\n    at async uO (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1837:7103)\n    at async wB (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2468:2575)","timestamp":"2025-06-20T21:29:15.339Z"},{"error":"Error: socket hang up\n    at xx.from (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:526:44022)\n    at TY.p1 (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:529:10131)\n    at TY.emit (node:events:520:28)\n    at TY.emit (node:domain:488:12)\n    at qM1.<computed> (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:61:1149)\n    at ClientRequest.emit (node:events:520:28)\n    at ClientRequest.emit (node:domain:488:12)\n    at TLSSocket.socketOnEnd (node:_http_client:524:9)\n    at TLSSocket.emit (node:events:532:35)\n    at TLSSocket.emit (node:domain:488:12)\n    at vl.request (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:531:2081)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async rz5 (file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2030:468)\n    at async Promise.all (index 0)\n    at async file:///home/hember/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2016:6159","times

Note: Error logs were truncated.

View original on GitHub ↗

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