[BUG] API Error: Unable to connect to API (ECONNRESET)

Status Closed — not planned
Maintainer reply None cached
Activity 8 comments · opened Mar 26, 2026 · closed May 3, 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?

I keep getting this error. I checked the server status and that's good. I closed out and restarted the program and that didn't help. I also started a new thread and that didn't work. Cannot use cowork.

What Should Happen?

I check the server status and that's good. I closed out and restarted the program and that didn't help. I also started a new thread and that didn't work. What the heck is going on?

Error Messages/Logs

Steps to Reproduce

1.open cowork
2.try to use cowork...

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

latest

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Terminal.app (macOS)

Additional Information

I check the server status and that's good. I closed out and restarted the program and that didn't help. I also started a new thread and that didn't work. What the heck is going on?

<img width="593" height="328" alt="Image" src="https://github.com/user-attachments/assets/7ed715b9-59f6-4f19-a108-960977600e99" />

View original on GitHub ↗

8 Comments

github-actions[bot] · 6 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/29591
  2. https://github.com/anthropics/claude-code/issues/27789
  3. https://github.com/anthropics/claude-code/issues/28094

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

SebJulien-071334 · 6 months ago

privilégiez Git Bash ou WSL2 et forcez la mise à jour via irm https://claude.ai/install.ps1 | iex pour stabiliser le mode Cowork

kumaakh · 6 months ago

This error is occuring almost every 15 seconds for me today... I have been a power user for last 6 moths but last 2-3 days have been very very disappointing. I can not do anything with these constant errors breaking every conversation with claude and I have 10 of them running all the time... extremely frustrating.. this is the first time I am looking out for other agentic systems TBH.
In last 2 months I have enabled at least 50 members to buy claude teams/enterprise/personal licenses.. many of them are now barking back at me. Please do something about this issue Anthropic.

For me it is happening in Claude Code CLI

<img width="697" height="380" alt="Image" src="https://github.com/user-attachments/assets/3b07b013-3ec5-41e8-afe9-58657cbc10d6" />

Using 2.1.86
I had never seen this issue in last 6 months and seen it enough in last 6 days

github-actions[bot] · 5 months ago

Closing for now — inactive for too long. Please open a new issue if this is still relevant.

BEMS680629HDFLRR04 · 4 months ago

Summary

Cowork consistently fails with "API Error: Unable to connect to API (ECONNRESET)"
after 10 retry attempts. Regular Chat mode works perfectly. The CoworkVMService
starts successfully and the host machine reaches api.anthropic.com on port 443,
but the workspace VM cannot establish a connection to the API.

Environment

  • OS: Windows 11 Pro
  • Build: OsBuildNumber : 26200
  • Architecture: x64
  • Claude Desktop version: 1.7196.1.0
  • Package: Claude_1.7196.1.0_x64__pzs8sxrjxfjjc
  • Subscription plan: Pro
  • Antivirus: Kaspersky Total Security

Steps already tried (none resolved the issue)

  1. Verified VirtualMachinePlatform and Hyper-V are enabled (vmms service running).
  2. Verified CoworkVMService starts successfully (Status: Running).
  3. Cleared cache via Help → Troubleshooting → Clear cache and restart.
  4. Deleted vm_bundles folder and let Claude re-download the VM.
  5. Suspended Kaspersky antivirus protection completely during a test session.
  6. Added Kaspersky exclusions for *.anthropic.com, AnthropicClaude package folder,

and CoworkVMService.exe.

  1. Verified host connectivity: Test-NetConnection api.anthropic.com -Port 443

returns TcpTestSucceeded: True.

Error sequence observed

  1. Workspace starts: "El servidor está ocupado. Reintentando."
  2. 10 retry attempts.
  3. Final error: "API Error: Unable to connect to API (ECONNRESET)"

Diagnostic outputs

Test-NetConnection api.anthropic.com -Port 443

Get-NetNat

ComputerName : api.anthropic.com
RemoteAddress : 2607:6bc0::10
RemotePort : 443
InterfaceAlias : Wi-Fi
SourceAddress : 2806:2f0:99c1:e09a:849a:f229:721f:1c5d
TcpTestSucceeded : True

Get-Service CoworkVMService

Status : Stopped
Name : CoworkVMService
StartType : Automatic
DisplayName : Claude

Get-VMSwitch

Name SwitchType NetAdapterInterfaceDescription
---- ---------- ------------------------------
Default Switch Internal

Name Status MacAddress LinkSpeed
---- ------ ---------- ---------
vEthernet (Default Switch) Up 00-15-5D-64-0A-00 10 Gbps

Recent error events

TimeCreated : 19/05/2026 06:41:11 p. m.
LevelDisplayName : Información
Id : 1
Message : Claude VM Service stopped.

TimeCreated : 19/05/2026 06:26:14 p. m.
LevelDisplayName : Información
Id : 1
Message : Claude VM Service starting. Detailed logs: C:\ProgramData\Claude\Logs\cowork-service.log

Related issues

This appears related to:

  • #26567 (Cowork - Unable to connect to Claude API on Windows ECONNRESET)
  • #27218 (Cowork Windows - API Error Unable to connect to API)
  • #25876 (Win 11 Pro Hyper-V enabled ECONNRESET error)
  • #26510 (Cowork Windows 11 Pro ECONNRESET NAT rule creation fails)

Attachments

  • diagnostico_cowork.txt: full PowerShell diagnostic outputs
  • claude_logs.zip: Claude Desktop application logs
  • error_cowork.png: screenshot of the error message

Impact

Cowork is unusable on this machine. Regular Chat works without issues, confirming
the problem is isolated to the workspace VM networking layer.

claude_logs.zip
diagnostico_cowork.txt
<img width="2560" height="1392" alt="Image" src="https://github.com/user-attachments/assets/0d368d81-5d8c-4ac5-b6bd-76b99ba03c7c" />

kumaakh · 4 months ago

@BEMS680629HDFLRR04 pls see here https://github.com/anthropics/claude-code/issues/41242#issuecomment-4277821335
https://github.com/anthropics/claude-code/issues/41242#issuecomment-4474328395
I have been able to resolve the ECONNRESET errors by almost 100% by switching to Wired LAN and I was very very frustrated with these issues for more thsn a month. and there are others on the same track who have reported the same success.
HTH

BEMS680629HDFLRR04 · 4 months ago
@BEMS680629HDFLRR04 pls see here #41242 (comment) #41242 (comment) I have been able to resolve the ECONNRESET errors by almost 100% by switching to Wired LAN and I was very very frustrated with these issues for more thsn a month. and there are others on the same track who have reported the same success. HTH

This happens whether I connect via Ethernet or Wi-Fi. It even happens when I switch to my cell phone's mobile data network.

github-actions[bot] · 3 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.