[BUG] API Error: Unable to connect to API (ECONNRESET)

Resolved 💬 2 comments Opened Jun 1, 2026 by nero-tulip Closed Jul 4, 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?

happens on almost every message. sometimes with no context window usage, but very common once i hit 20%

so weird. no issues previously. internet connection is perfectly fine and normal. ive been a claude code user for months and months and never had this issue before. and over the last 7-10 days this has been greatly disrupting my workflow. ive had to sign up to the disgusting openai codex in order to continue my work (which pains me greatly)

but seriously, you guys need to figure this the fuck out because it's incredibly annoying and whenever i try to debug it's always just "issues server side" and yet not too many others seem to be experiencing it???

<img width="682" height="322" alt="Image" src="https://github.com/user-attachments/assets/118f9f5a-5a11-449b-b363-339c4abcaa09" />

<img width="496" height="79" alt="Image" src="https://github.com/user-attachments/assets/f8037b86-8ccb-4d60-b596-e0bb75b02361" />

<img width="370" height="56" alt="Image" src="https://github.com/user-attachments/assets/14ca6d10-511a-4c18-b222-f687c42a7470" />

<img width="1424" height="360" alt="Image" src="https://github.com/user-attachments/assets/2aeb51c1-1a9c-4539-b666-8e8371838939" />

What Should Happen?

it should just fucking work?

Error Messages/Logs

Steps to Reproduce

  1. open terminal
  2. open claude
  3. try to use claude
  4. fail
  5. get frustrated
  6. check claude status
  7. apparently nothing is wrong
  8. check claude reddit
  9. nothing is wrong
  10. post about it on github claude issues
  11. receive some comments from other people experiencing the same issue
  12. opus 4.8 releases
  13. "oh maybe this changes things and it will be fine now"
  14. repeat step 1-10

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.159 (Claude Code)

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 ↗