[BUG] I'm facing API Error: Unable to connect to API (ConnectionRefused)

Resolved 💬 2 comments Opened May 23, 2026 by yanurag-dev Closed Jun 28, 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?

When I'm requesting (sending prompt) it is showing me retry and then getting ConnectionRefused error

What Should Happen?

I should get response of the prompt

Error Messages/Logs

Steps to Reproduce

Try to send request to claude code

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.150

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

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