You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
Claude Code CLI has been effectively unusable for an entire day (March 30, 2026). Approximately 80% of prompts fail with API Error: Unable to connect to API (ECONNRESET) after 3+ minutes of waiting. This persists three days after the March 26-27 infrastructure incident that was marked "resolved."
Additionally, Claude Desktop (chat mode) file uploads fail in a size-dependent manner — 28KB PNG succeeds, 70KB PNG fails with "Upload failed due to a network issue" — in the same session where chat text works perfectly. Chat text itself also shows intermittent errors on longer responses.
Debug Log Analysis — Hard Data
Ran Claude Code with -d flag for a 3-hour session (7c909456, 2026-03-30 19:00–22:01 UTC). Full log: 5,612 lines, 118 total errors.
Error breakdown
Error Type
Count
Impact
API "Connection error" (retries)
73
High — blocked all API requests
ECONNRESET (telemetry export)
27 (9 distinct events)
Low — telemetry only
MCP server auth failures
3
Unrelated
Request aborted (user cancel)
3
User-initiated
Burst pattern
Time (UTC)
Attempts
Outcome
19:00
5
User cancelled
19:01–19:02
8
Eventually recovered
19:03–19:05
9
Eventually recovered
19:11–19:17
39
Heaviest — 39 attempts in 6 minutes
22:00–22:01
12
Final burst
Error characteristics
Error is undefined Connection error — no HTTP status code. TCP socket resets before any HTTP response is received.
Both the API endpoint (api.anthropic.com) and the telemetry endpoint (Datadog) fail simultaneously — both sit behind the same CDN/edge layer.
Retry backoff (attempts 1–11) sometimes recovers, sometimes exhausts all retries.
Requests that succeed show no degradation — responses stream normally. It's binary: connect or ECONNRESET.
Telemetry ECONNRESET events (events lost per failure)
Time (UTC)
Events Lost
19:01:33
28
19:15:57
30
19:16:16
192
19:16:26
279
19:16:36
190
19:16:46
62
19:18:08
74
21:45:02
78
21:50:19
39
This Is Not a Client Network Issue
Claude Code's own debug analysis concluded "network instability on your machine/network." This is incorrect. Counter-evidence:
Claude Desktop chat worked fine in the same session, same network, same machine, for hours — including a lengthy troubleshooting conversation with Claude.
Claude Desktop file uploads are size-dependent — 28KB PNG passes, 70KB PNG fails. A local network issue would not exhibit a clean size threshold.
Successful requests work perfectly — when the ~20% that connect do get through, streaming completes without issues. Local network instability would cause mid-stream failures, not binary connect/fail.
The burst pattern (39 attempts in 6 minutes, then stable for 2.5 hours, then another burst) is consistent with server-side load balancer rotation hitting unhealthy nodes, not local network drops.
Versions Tested — No Improvement
Version
Channel
Result
2.1.81
Stable
~80% ECONNRESET
2.1.86
Latest
~80% ECONNRESET
2.1.87
Latest (includes "fresh TCP on retry" fix)
~80% ECONNRESET
The fresh-TCP-on-retry fix in 2.1.87 did not help, which is expected if the issue is server-side connection resets rather than stale client connection pools.
Network: Home broadband (Londonderry, NH), no VPN, no proxy, no corporate firewall
Claude Code version: Tested 2.1.81, 2.1.86, 2.1.87
Claude Desktop: Latest version, same machine
What Should Happen?
Claude Code CLI should connect reliably. File uploads should work regardless of file size within documented limits.
Error Messages/Logs
Steps to Reproduce
Open Claude Code CLI on Windows (claude)
Send any prompt
Wait 3+ minutes
Observe: API Error: Unable to connect to API (ECONNRESET)
Repeat — ~80% of attempts fail, ~20% succeed
For the upload size threshold (Claude Desktop):
Open Claude Desktop chat (not Code mode)
Attach a PNG < 30KB → succeeds
Attach a PNG > 50KB → fails with "Upload failed due to a network issue"
Send text in the same conversation → works fine
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
No response
Claude Code Version
2.1.87
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
The March 26-27, 2026 infrastructure incident (networking degradation affecting Opus 4.6 and Sonnet 4.6) was marked resolved on March 27 at 9:30 AM PT.
A Dispatch issue was identified and resolved on March 29.
The status page currently shows all services "Operational."
Hacker News noted 2 days ago that Claude lost its >99% uptime in Q1 2026.
This issue persists on March 30 — three days after the "resolved" incident.
Preflight Checklist
What's Wrong?
Claude Code CLI has been effectively unusable for an entire day (March 30, 2026). Approximately 80% of prompts fail with
API Error: Unable to connect to API (ECONNRESET)after 3+ minutes of waiting. This persists three days after the March 26-27 infrastructure incident that was marked "resolved."Additionally, Claude Desktop (chat mode) file uploads fail in a size-dependent manner — 28KB PNG succeeds, 70KB PNG fails with "Upload failed due to a network issue" — in the same session where chat text works perfectly. Chat text itself also shows intermittent errors on longer responses.
Debug Log Analysis — Hard Data
Ran Claude Code with
-dflag for a 3-hour session (7c909456, 2026-03-30 19:00–22:01 UTC). Full log: 5,612 lines, 118 total errors.Error breakdown
Burst pattern
Error characteristics
undefined Connection error— no HTTP status code. TCP socket resets before any HTTP response is received.api.anthropic.com) and the telemetry endpoint (Datadog) fail simultaneously — both sit behind the same CDN/edge layer.Telemetry ECONNRESET events (events lost per failure)
This Is Not a Client Network Issue
Claude Code's own debug analysis concluded "network instability on your machine/network." This is incorrect. Counter-evidence:
Versions Tested — No Improvement
The fresh-TCP-on-retry fix in 2.1.87 did not help, which is expected if the issue is server-side connection resets rather than stale client connection pools.
Environment
C:\Users\akhil\.local\bin\claude.exe)What Should Happen?
Claude Code CLI should connect reliably. File uploads should work regardless of file size within documented limits.
Error Messages/Logs
Steps to Reproduce
claude)API Error: Unable to connect to API (ECONNRESET)For the upload size threshold (Claude Desktop):
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
No response
Claude Code Version
2.1.87
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
Related Issues
-pmode works, Feb 12https://claude.ai/share/d8960f65-da5d-4c61-a330-1cb069374592