API Request Failures: Persistent 503 Service Unavailable Errors
Bug Description
api Error in max claude code account plan > hey
⎿ API Error (Request timed out.) · Retrying in 1 seconds… (attempt 1/10)
⎿ API Error (Request timed out.) · Retrying in 1 seconds… (attempt 2/10)
⎿ API Error (503 no healthy upstream) · Retrying in 2 seconds… (attempt 3/10)
⎿ API Error (503 no healthy upstream) · Retrying in 4 seconds… (attempt 4/10)
⎿ API Error (503 no healthy upstream) · Retrying in 9 seconds… (attempt 5/10)
⎿ API Error (503 no healthy upstream) · Retrying in 20 seconds… (attempt 6/10)
⎿ API Error (503 no healthy upstream) · Retrying in 35 seconds… (attempt 7/10)
⎿ API Error (503 no healthy upstream) · Retrying in 35 seconds… (attempt 8/10)
⎿ API Error (503 upstream connect error or disconnect/reset before headers. reset reason: connection timeout) · Retrying in 36 seconds… (attempt 9/10)
⎿ API Error (503 upstream connect error or disconnect/reset before headers. reset reason: remote connection failure, transport failure reason: delayed connect error: Connection refused) · Retrying in 37 seconds… (attempt 10/10)
⎿ API Error: Request timed out.
Environment Info
- Platform: macos
- Terminal: pycharm
- Version: 1.0.21
- Feedback ID: 0241ea06-ce44-479a-870a-5953a575f05a
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 HZ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:659:3921)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:11795\n at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:17190)\n at oJ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:10941)\n at YS (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:10022)\n at zAA (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2033:9905)","timestamp":"2025-06-12T20:14:23.791Z"},{"error":"Error: Command failed: security delete-generic-password -a $USER -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 HZ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:659:3921)\n at ofA (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:12907)\n at rfA (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:12781)\n at XAA (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2022:2569)\n at VAA.startOAuthFlow (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2022:3705)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-06-12T20:14:51.097Z"},{"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 HZ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:659:3921)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:11795\n at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:17190)\n at oJ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:10941)\n at YS (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:10022)\n at R6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:14134)","timestamp":"2025-06-12T20:14:51.170Z"},{"error":"Error: 503 upstream connect error or disconnect/reset before headers. reset reason: connection timeout\n at g6.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1327:12815)\n at qw.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1342:2082)\n at qw.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1342:5257)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-06-12T20:20:22.433Z"},
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗