[BUG] ECONNRESET on a fresh 2.1.39 install

Resolved 💬 4 comments Opened Feb 12, 2026 by noeamoedo Closed Mar 16, 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?

Claude Code 2.1.39 on macOS, Claude Pro account
ECONNRESET / "Unable to connect to API due to poor internet connection"
Debug logs show 403 Forbidden and ECONNRESET
curl to api.anthropic.com works fine (405)
node fetch() to API works fine (404)
Node.js streaming HTTPS to API works fine (401 with test key)
Problem persists after fresh install, rm -rf ~/.claude, re-login
Node version: run node --version and include it

What Should Happen?

Claude Code shoudl follow my instructions without a connection error

Error Messages/Logs

Steps to Reproduce

N/A

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.39 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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