Constantly receiving API ERROR 503

Status Fixed / completed
Maintainer reply ✓ Yes — dicksontsai
Activity 4 comments · opened Sep 10, 2025 · closed Sep 10, 2025
💡 Likely answer: A maintainer (dicksontsai, collaborator) responded on this thread — see the highlighted reply below.

Bug Description
I was trying to use claude code today and I was getting a lot of these messages ⎿ API Error (503 upstream connect error or disconnect/reset before headers. reset reason: connection timeout) · Retrying in 5 seconds… (attempt 4/10)
⎿ API Error (503 upstream connect error or disconnect/reset before headers. reset reason: connection timeout) · Retrying in 8 seconds… (attempt 5/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 19 seconds… (attempt 6/10)
⎿ API Error (503 upstream connect error or disconnect/reset before headers. reset reason: connection termination) · Retrying in 34 seconds… (attempt 7/10)
⎿ API Error (503 upstream connect error or disconnect/reset before headers. reset reason: connection timeout) · Retrying in 36 seconds… (attempt 8/10)

Environment Info

  • Platform: win32
  • Terminal: mintty
  • Version: 1.0.110
  • Feedback ID: 00edf88e-8843-49d6-a9a9-ba4f93babaa9

Errors

[{"error":"Error: terminated\n    at file:///C:/Users/luizr/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:991:6454\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-09-10T16:25:24.542Z"},{"error":"Error: Operation aborted\n    at C (file:///C:/Users/luizr/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1899:19482)\n    at file:///C:/Users/luizr/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1899:19536\n    at new Promise (<anonymous>)\n    at $Y1 (file:///C:/Users/luizr/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1899:19398)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async k7B (file:///C:/Users/luizr/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1899:29216)\n    at async file:///C:/Users/luizr/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1899:24065\n    at async KE0 (file:///C:/Users/luizr/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1899:4265)\n    at async e11 (file:///C:/Users/luizr/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1899:24035)\n    at async p$ (file:///C:/Users/luizr/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3568:1745)","timestamp":"2025-09-10T16:26:18.656Z"},{"error":"Error: terminated\n    at file:///C:/Users/luizr/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:991:6454\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-09-10T16:27:53.168Z"},{"error":"SyntaxError: Unexpected token 'A', \"API Error:\"... is not valid JSON\n    at JSON.parse (<anonymous>)\n    at file:///C:/Users/luizr/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:733:9932\n    at Q (file:///C:/Users/luizr/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:713:13288)\n    at Je2 (file:///C:/Users/luizr/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1115:1982)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-09-10T16:27:53.179Z"},{"error":"Error: terminated\n    at file:///C:/Users/luizr/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:991:6454\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-09-10T16:28:35.905Z"}]

View original on GitHub ↗

4 Comments

HoopTire · 11 months ago
github-actions[bot] · 11 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/7402
  2. https://github.com/anthropics/claude-code/issues/7043
  3. https://github.com/anthropics/claude-code/issues/7400

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

dicksontsai collaborator · 11 months ago
github-actions[bot] · 11 months ago

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.