[BUG] UNABLE_TO_GET_ISSUER_CERT_LOCALLY
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?
When attempting to launch Claude Code using the claude command, it exits with an error.
<img width="1479" height="289" alt="Image" src="https://github.com/user-attachments/assets/ab7efffa-4158-4758-9f93-50b1f6174764" />
What Should Happen?
I use Claude Code CLI.
Error Messages/Logs
Unable to connect to Anthropic services
Failed to connect to api.anthropic.com: UNABLE_TO_GET_ISSUER_CERT_LOCALLY
Please check your internet connection and network settings.
Note: Claude Code might not be available in your country. Check supported countries at https://anthropic.com/supported-countries
Steps to Reproduce
While using Claude Code in DevContainers, I suddenly encountered an "API Error (Connection error.) TypeError (fetch failed)" and stopped receiving responses.
I attempted to execute "/logout" and re-authenticate, but received a "Failed to connect to api.anthropic.com: UNABLE_TO_GET_ISSUER_CERT_LOCALLY" error, rendering it unusable.
I tried both WSL2 and Windows environments, but encountered the same issues.
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
1.0.126 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗