Windows WSL2 consistent API Errors
Resolved 💬 6 comments Opened Mar 2, 2025 by sumukhballal Closed May 7, 2025
Issue overview
Hello, I have installed Claude code on my Windows Laptop using WSL following: https://docs.anthropic.com/en/docs/agents-and-tools/claude-code/overview. I was able to get claude installed fine, no errors but I keep getting an API Error that I havent been able to decipher. My API Keys are created and I see them at https://console.anthropic.com/. Billing is set up as well. The error below is consistent on ALL calls including /login
Error:
Tips for getting started:
1. Run /init to create a CLAUDE.md file with instructions for Claude.
2. Ask Claude questions about your codebase.
3. Ask Claude to implement changes to your codebase.
⎿ API Error (Connection error.) · Retrying in 1 seconds… (attempt 1/10)
⎿ API Error (Connection error.) · Retrying in 1 seconds… (attempt 2/10)
⎿ API Error (Connection error.) · Retrying in 2 seconds… (attempt 3/10)
⎿ API Error (Connection error.) · Retrying in 4 seconds… (attempt 4/10)
⎿ API Error (Connection error.) · Retrying in 8 seconds… (attempt 5/10)
⎿ API Error (Connection error.) · Retrying in 16 seconds… (attempt 6/10)
⎿ API Error (Connection error.) · Retrying in 32 seconds… (attempt 7/10)
⎿ API Error (Connection error.) · Retrying in 32 seconds… (attempt 8/10)
⎿ API Error (Connection error.) · Retrying in 32 seconds… (attempt 9/10)
System configuration
# wsl --version
WSL version: 2.4.11.0
Kernel version: 5.15.167.4-1
WSLg version: 1.0.65
MSRDC version: 1.2.5716
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.22631.4890
# uname -a
Linux NAME-REDACTED 5.15.167.4-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
# nvm --version
0.40.1
# node --version
v22.14.0
#npm --version
10.9.2
#claude --version
0.2.29 (Claude Code)
Fixes tried / Verifications done
- Reinstall Claude multiple times.
- Deleted API Keys & recreated them multiple times.
- Ruled out network issue as curl to console.anthropic.com works just fine.
- Verified claude.json to see
hasCompletedOnboarding:true&hasTrustDialogAccepted:true&customerApiKeyResponses:approved. - Verified System status was UP: https://status.anthropic.com/
- Used
sudo npm installinstead ornpm install.
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗