Persistent API Request Timeout After Multiple Retry Attempts
Bug Description API Error (Request timed out.) · Retrying in 34 seconds… (attempt 7/10) ⎿ API Error (Request timed out.) · Retrying in 39 seconds… (attempt 8/10) ⎿ API Error (Request timed out.) · Retrying in 39 seconds… (attempt 9/10) ⎿ API Error (Request timed out.) · Retrying in 35 seconds… (attempt 10/10)
Environment Info
- Platform: darwin
- Terminal: cursor
- Version: 1.0.28
- Feedback ID: 05cdeace-b6b9-4bb4-bef8-a00ec6cf3edd
Errors
[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n at genericNodeError (node:internal/errors:983:15)\n at wrappedFn (node:internal/errors:537:14)\n at checkExecSyncError (node:child_process:892:11)\n at execSync (node:child_process:964:15)\n at EZ (file:///Users/danhenders/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:659:3921)\n at file:///Users/danhenders/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:582:9014\n at Q (file:///Users/danhenders/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:526:17199)\n at BX (file:///Users/danhenders/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:582:8160)\n at qS (file:///Users/danhenders/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:582:7241)\n at L9 (file:///Users/danhenders/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:582:11408)","timestamp":"2025-06-19T08:40:14.666Z"},{"error":"Error: 1: ENOENT \n at eP6 (file:///Users/danhenders/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1326:4493)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async oP6 (file:///Users/danhenders/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1326:2578)","timestamp":"2025-06-19T08:40:15.501Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n at Socket.onChildStdout (node:child_process:482:14)\n at Socket.emit (node:events:507:28)\n at Socket.emit (node:domain:489:12)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at Readable.push (node:internal/streams/readable:390:5)\n at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2025-06-19T08:40:15.728Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at aD (file:///Users/danhenders/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1465:1176)\n at file:///Users/danhenders/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1465:910\n at Array.map (<anonymous>)\n at SK (file:///Users/danhenders/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1465:901)\n at rR2 (file:///Users/danhenders/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1918:13988)\n at TE (file:///Users/danhenders/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:142:19803)\n at hT (file:///Users/danhenders/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:144:42555)\n at bT (file:///Users/danhenders/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:144:38104)\n at Uq (file:///Users/danhenders/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:144:38032)\n at iE (file:///Users/danhenders/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:144:37886)","timestamp":"2025-06-19T09:37:54.906Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at aD (file:///Users/danhenders/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1465:1176)\n at file:///Users/danhenders/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1465:910\n at Array.map (<anonymous>)\n at SK (file:///Users/danhenders/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1465:901)\n at Object.renderToolResultMessage (file:///Users/danhenders/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1465:5085)\n at y$2 (file:///Users/danhenders/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1913:3190)\n at TE (file:///Users/danhenders/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:142:19803)\n at hT (file:///Users/danhenders/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:144:42555)\n at bT (file:///Users/danhenders/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:144:38104)\n at Uq (file:///Users/danhenders/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:144:38032)","timestamp":"2025-06-19T09:38:18.158Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n at Socket.onChildStdout (node:child_process:482:14)\n at Socket.emit (node:events:507:28)\n at Socket.emit (node:domain:489:12
Note: Error logs were truncated.
I'm seeing the exact same thing. Just switched over to MAX a couple days ago and this (coincidentally?) started very shortly afterwards.
The error stops if you open a new chat. /Exit and open a new one. It's possible too many people using Claude code and system was fried. I've been using it for a about 2 weeks now. It's so good. Don't give it up..just report any bugs.
I wish this fixed things for me, but it doesn't. I know what it's capable of - but ... ¯_(ツ)_/¯
Same here. Also recently switched to Max
From Anthropic Support to me:
"The timeout issues with long todo lists appear to be related to the extended processing time required for complex multi-step tasks, which can exceed the default API timeout limits. As a workaround, you can increase the API timeout by setting the API_TIMEOUT_MS environment variable before launching Claude Code. For example, you can use the export API_TIMEOUT_MS=600000 command to set it for 10 minutes. The default appears to be 30 seconds (30000ms), but you can increase it significantly for complex tasks like long todo lists."
This worked for me personally.
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.