[BUG]

Resolved 💬 17 comments Opened Oct 3, 2025 by Pblak Closed Jan 7, 2026

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_

View original on GitHub ↗

17 Comments

nealshuh · 9 months ago

Getting this error as well

ArturoTorresMartinez · 9 months ago

Same

Pblak · 9 months ago

m stuck now !

sylv77 · 9 months ago

same

Pblak · 9 months ago

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)

kkarkos · 9 months ago
Pblak · 9 months ago

<img width="889" height="888" alt="Image" src="https://github.com/user-attachments/assets/8e1c466f-df3b-4d22-91eb-f8339de94da2" />

mpdunlop · 9 months ago

From https://status.claude.com/:

A fix has been implemented and we are monitoring the results

Does not seem to have fixed Claude Code, I'm getting the same 503 errors as OP.

qiuhuiming · 9 months ago

I'll be fired without Claude Code 🥹 HELP

Pblak · 9 months ago

<img width="1034" height="417" alt="Image" src="https://github.com/user-attachments/assets/c2f8950b-af83-4337-8d32-5686122467c0" />

Pblak · 9 months ago

⎿  503 upstream connect error or disconnect/reset before headers. reset reason: remote connection failure, transport failure reason: delayed connect error: Connection refused

Pblak · 9 months ago

come on guyyys people are waiting !

03-CiprianoG · 9 months ago

Looks like claude code is back up now.

Ban921 · 9 months ago

same,because of this, I wasted one quota cycle.

github-actions[bot] · 7 months ago

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.

github-actions[bot] · 6 months ago

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.

github-actions[bot] · 6 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.