[BUG]
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [ ] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
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 4 seconds… (attempt 4/10)
What Should Happen?
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 4 seconds… (attempt 4/10)
Error Messages/Logs
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 4 seconds… (attempt 4/10)
Steps to Reproduce
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 4 seconds… (attempt 4/10)
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
v2.0.5 Sonnet 4.5 · Claude Max
Claude Code Version
v2.0.5 Sonnet 4.5 · Claude Max
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Windows Terminal
Additional Information
_No response_
17 Comments
Getting this error as well
Same
m stuck now !
same
API Error (api.anthropic.com | 525: SSL handshake failed) · Retrying in 4 seconds… (attempt 4/10)
⎿ API Error (api.anthropic.com | 522: Connection timed out) · Retrying in 8 seconds… (attempt 5/10)
⎿ API Error (api.anthropic.com | 522: Connection timed out) · Retrying in 17 seconds… (attempt 6/10)
⎿ API Error (api.anthropic.com | 522: Connection timed out) · Retrying in 35 seconds… (attempt 7/10)
⎿ API Error (api.anthropic.com | 520: Web server is returning an unknown error) · Retrying in 38 seconds… (attempt 8/10)
https://status.claude.com/
<img width="889" height="888" alt="Image" src="https://github.com/user-attachments/assets/8e1c466f-df3b-4d22-91eb-f8339de94da2" />
From https://status.claude.com/:
Does not seem to have fixed Claude Code, I'm getting the same 503 errors as OP.
I'll be fired without Claude Code 🥹 HELP
<img width="1034" height="417" alt="Image" src="https://github.com/user-attachments/assets/c2f8950b-af83-4337-8d32-5686122467c0" />
⎿ 503 upstream connect error or disconnect/reset before headers. reset reason: remote connection failure, transport failure reason: delayed connect error: Connection refused
come on guyyys people are waiting !
Looks like claude code is back up now.
same,because of this, I wasted one quota cycle.
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.
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.