[BUG] Unable to connect to API (ConnectionRefused) Retrying in 2s · attempt 9/10

Resolved 💬 3 comments Opened May 27, 2026 by Dexus Closed Jun 27, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] 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?

Unable to connect to API (ConnectionRefused) Retrying in 2s · attempt 9/10

What is going on?

What Should Happen?

Get a connection and working claude

Error Messages/Logs

Steps to Reproduce

mid in work it showing Unable to connect to API (ConnectionRefused) Retrying in 2s · attempt 9/10

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.150

Claude Code Version

2.1.152

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Xterm

Additional Information

Same is now on all versions, a downgrade does not work

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗