Skip to content

[BUG] Intermittent ECONNRESET on both desktop app and standalone CLI, no VPN/proxy #87424

Description

@yuxianzh-Pi

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Experiencing repeated Connection dropped (ECONNRESET) errors across both the Claude desktop app's Code surface and the standalone CLI.

Started Aug 13 on the desktop app
Switched to standalone CLI on Aug 16 — same error recurred on Aug 17
Happened 10+ times total across both platforms
No VPN or proxy; normal home wifi
curl -v https://api.anthropic.com succeeds cleanly (full TLS handshake, HTTP/2, 404 response as expected) — basic connectivity is healthy
Pattern is intermittent: connection self-recovers for a while (queued messages eventually go through), then drops again
One occurrence: a safeguard/classifier flag switched the model from Opus 5 to Opus 4.8 mid-request, and ECONNRESET happened immediately after — possibly unrelated, but noting the timing in case useful
In-app /feedback also failed to submit ("couldn't reach the service"), suggesting the connectivity issue may affect more than just chat completions

Environment: macOS (MacBook Pro), Claude desktop app + standalone CLI

What Should Happen?

Claude should not repeated get connection API errors when finishing tasks.

Error Messages/Logs

API Error: Connection dropped (ECONNRESET)
✻ Connection dropped (ECONNRESET) · Retrying in 4s · attempt 4/10

Couldn't send feedback (couldn't reach the service). If it keeps failing, you can file at https://github.com/anthropics/claude-code/issues instead.

Also occurred alongside (possibly unrelated, noting for correlation):

Opus 5 (1M context)'s safeguards flagged this message. Our intentionally broad safeguards allow us to deliver more capabilities faster, but can sometimes flag legitimate coding, cybersecurity, and biology tasks.
Switched to Opus 4.8. Send feedback with /feedback or learn more

curl -v https://api.anthropic.com output for comparison (succeeds cleanly, for contrast with the failures above):

* Connected to api.anthropic.com (2607:6bc0::10) port 443
* SSL certificate verify ok.
* using HTTP/2
< HTTP/2 404
< server: cloudflare
* Connection #0 to host api.anthropic.com left intact

Steps to Reproduce

  1. Open Claude desktop app, go to the Code tab, start or resume a Claude Code session
  2. Send any prompt (reproduces even with a trivial message like "hi")
  3. Observe "API Error: Connection dropped (ECONNRESET)" with automatic retries
  4. Restart the desktop app entirely and repeat steps 2-3 — issue persists
  5. Switch to the standalone Claude Code CLI (claude in Terminal) on the same machine/network
  6. Send any prompt — same ECONNRESET error occurs
  7. Run curl -v https://api.anthropic.com — this succeeds normally with a clean TLS handshake and HTTP/2 response, confirming basic network connectivity is healthy
  8. Wait and retry — connection intermittently recovers on its own (queued messages go through), then fails again after further prompts
  9. No VPN or proxy in use; standard home wifi network throughout

Claude Model

None

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

v2.1.233

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions