[BUG] Frequent "API Error: Unable to connect to API (ECONNRESET)" in Claude Code

Open 💬 3 comments Opened Jun 30, 2026 by aadilraza339

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?

Hi Anthropic Support Team,

I am experiencing a recurring connectivity issue while using Claude Code (VS Code extension). The error appears frequently during active sessions:

API Error: Unable to connect to API (ECONNRESET)

Details:

The error occurs repeatedly, interrupting ongoing tasks mid-session
It is not a one-time occurrence — it keeps coming back
My internet connection is stable and working fine with other services
I am not using a VPN
Environment:

Tool: Claude Code (VS Code Extension)
OS: macOS
Model: claude-sonnet-4-6
This is significantly affecting my productivity as conversations get interrupted without warning. Please look into whether there is a server-side stability issue or if there is a fix/workaround available.

Thank you.

What Should Happen?

-

Error Messages/Logs

Steps to Reproduce

-

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.196 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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