API Error: Unable to connect to API (ECONNRESET)

Resolved 💬 2 comments Opened Apr 3, 2026 by Ajinkya-roo Closed May 12, 2026

Preflight Checklist

  • [x] I have searched existing issues for similar behavior reports
  • [x] This report does NOT contain sensitive information (API keys, passwords, etc.)

Type of Behavior Issue

Other unexpected behavior

What You Asked Claude to Do

whatever you ask it to do

in the past 3,4 days i have tried all the versions ( backing up to 3 weeks ) of claude code in VScode , it just fails to connect..
Claude code Chat works , but claude code gives an error API Error: Unable to connect to API (ECONNRESET) all the time..
tried using VPN , cloudfare WARP , multiple uninstalls and reinstalls , signout out completely then authenticating with browers, all of it.
Sometimes it works for just one session then again gone...Every morning IST time i face this issue...
Nothing mentioned by claude on https://status.claude.com/

What Claude Actually Did

API Error: Unable to connect to API (ECONNRESET)

Expected Behavior

Respond something

Files Affected

Permission Mode

Accept Edits was ON (auto-accepting changes)

Can You Reproduce This?

Yes, every time with the same prompt

Steps to Reproduce

_No response_

Claude Model

Sonnet

Relevant Conversation

API Error: Unable to connect to API (ECONNRESET)

hello
API Error: Unable to connect to API (ECONNRESET)

Impact

Medium - Extra work to undo changes

Claude Code Version

2.1.90 , 2.1.89 back upto 2.1.78

Platform

Anthropic API

Additional Context

_No response_

View original on GitHub ↗

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