Persistent API Connection Failures During Fetch Requests
Status Closed — not planned
Maintainer reply None cached
Activity 8 comments · opened Jul 8, 2025 · closed Jan 7, 2026
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 9 seconds… (attempt 5/10)
⎿ TypeError (fetch failed)
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 1.0.37
- Feedback ID: 56fb8aa3-7fe7-4979-9a08-cfe4bc7c59f0
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:882:11)\n at execSync (node:child_process:954:15)\n at PZ (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:701:3921)\n at file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:9038\n at Q (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:13327)\n at CX (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:8184)\n at tS (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:7265)\n at M9 (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:11432)","timestamp":"2025-07-08T04:24:03.731Z"},{"error":"AggregateError\n at tx.from (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:44270)\n at fY.b1 (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:529:10131)\n at fY.emit (node:events:518:28)\n at fY.emit (node:domain:489:12)\n at CM1.<computed> (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:61:1149)\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 sl.request (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:531:2081)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async C9A (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2360:225)","timestamp":"2025-07-08T04:24:05.524Z"},{"error":"AggregateError\n at tx.from (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:44270)\n at fY.b1 (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:529:10131)\n at fY.emit (node:events:518:28)\n at fY.emit (node:domain:489:12)\n at CM1.<computed> (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:61:1149)\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 sl.request (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:531:2081)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async C9A (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2360:225)","timestamp":"2025-07-08T04:24:05.527Z"},{"error":"Error: Failed to check bun permissions\n at gL5 (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2085:690)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async i2A (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2085:808)\n at async Y01 (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2095:43)\n at async file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2485:8930","timestamp":"2025-07-08T04:24:06.967Z"},{"error":"Error: Tool mcp__gitea__list_repo_issues not found\n at aR2 (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1939:5583)\n at uE (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:65:19803)\n at $$ (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:3199)\n at BP (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/
Note: Error logs were truncated.
8 Comments
This error has increased again! No other new information to provide. Persistent WebFetch failure is a blocker to ALL tasks!
I'm having this issue as well. I just started using Claude today and I really enjoyed it, and it worked great this morning, but it looks like all functions throw API errors for me now.
I don't know internal but possibly related to https://github.com/anthropics/anthropic-sdk-typescript/issues/712?
This happens every day and blocks me for several hours. Sometimes everything works great and then other times it's like the API is down. Very frustrating.
macOS 15.1.1 & npm-local (1.0.85)
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.
Still happens on Claude Code to me.
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.
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.