Coding Agents
Claude Code errors: causes and tested fixes
Most Claude Code errors fall into 5 groups: certificates and network, server and limits, sign-in, requests and models, and install and setup. Search the 35 errors here by exact message or code, such as 529 Overloaded or SELF_SIGNED_CERT_IN_CHAIN, for the cause and fix, checked on Claude Code 2.1.293 on 8 October 2026. If everything fails at once, check status.claude.com first.
35 errors
Certificates and network (10)
- Claude Code SSL certificate error: verification failed (UNABLE_TO_GET_ISSUER_CERT_LOCALLY)Fix the Claude Code SSL certificate error UNABLE_TO_GET_ISSUER_CERT_LOCALLY behind Zscaler, Netskope or any TLS-inspecting proxy, step by step.
- Self-signed certificate detected (SELF_SIGNED_CERT_IN_CHAIN)Fix SELF_SIGNED_CERT_IN_CHAIN and “Self-signed certificate detected” in Claude Code and WSL: trust your proxy or antivirus root safely, step by step.
- SSL certificate is not yet valid (CERT_NOT_YET_VALID)Claude Code says the SSL certificate is not yet valid (CERT_NOT_YET_VALID)? Your clock is almost always behind. Sync it on Windows, macOS, Linux or WSL.
- SSL certificate has expired (CERT_HAS_EXPIRED)Claude Code says the SSL certificate has expired (CERT_HAS_EXPIRED)? Check your clock, your proxy’s root and the CA file you gave Claude Code.
- SSL certificate hostname mismatch (ERR_TLS_CERT_ALTNAME_INVALID)Fix ERR_TLS_CERT_ALTNAME_INVALID (SSL hostname mismatch) in Claude Code: captive Wi-Fi, hosts-file overrides, VPN DNS or a gateway certificate.
- curl: (60) SSL certificate problem: unable to get local issuer certificateClaude Code install fails with curl (60), curl (35), schannel or “Could not create SSL/TLS secure channel”? Safe fixes for macOS, Linux and Windows.
- Unable to connect to APIFix “Unable to connect to API” in Claude Code: ConnectionRefused, ECONNREFUSED, ECONNRESET, ENOTFOUND and proxy errors, with checks for each OS.
- Request timed outFix “Request timed out” in Claude Code: when to retry, how to raise API_TIMEOUT_MS for slow proxies, and what “No response from API” means.
- API Error: No response from APIClaude Code’s “No response from API” means the API sent nothing back before the deadline, twice. What the waits mean and when to raise API_TIMEOUT_MS.
- API Error: Stream idle timeout - partial response received“Stream idle timeout - partial response received” means Claude’s reply stopped arriving partway through. How to keep the partial work, continue and prevent it.
Server and limits (6)
- API Error: 500 Internal server errorClaude Code shows API Error 500 (Internal server error) or 502? What it means, why it isn’t your settings, and what to do while Anthropic fixes it.
- Claude Code: API Error 529 OverloadedClaude Code API Error 529 Overloaded means Anthropic’s API is at capacity for everyone, not that you hit a limit. What to do now, and how a 529 differs from a 429.
- API Error: Request rejected (429)Fix “Request rejected (429)” in Claude Code: find which key or plan hit the rate limit, tell it apart from a server throttle, and cut concurrency.
- Claude Code: You've hit your session limit (usage limit reached)Claude Code says “You’ve hit your session limit” or weekly limit? When it resets, how to keep working now, and how to make your plan’s usage last longer.
- Claude Code: Credit balance is too lowClaude Code says “Credit balance is too low” on a Pro or Max plan? It’s billing an API key or Console credits. How to switch back to your plan, or top up.
- API Error: Usage credits required for 1M contextClaude Code’s “Usage credits required for 1M context” means your plan reaches the 1M-token window only through usage credits. Switch model or turn credits on.
Sign-in (7)
- Not logged in · Please run /loginFix “Not logged in · Please run /login” in Claude Code: sign in, check your API key is exported, and stop repeated login prompts on macOS.
- Invalid API key · Fix external API keyFix “Invalid API key · Fix external API key” in Claude Code: find which key is used, replace or remove it, or switch back to your subscription.
- OAuth token has expired / OAuth token revokedFix “OAuth token has expired” and “OAuth token revoked” in Claude Code: sign in again, refresh setup tokens and keep automation running.
- API Error: 401 Invalid authentication credentialsFix “API Error: 401 Invalid authentication credentials” in Claude Code: find the active credential, rotate the key or log in again.
- API Error: 403 Request not allowedClaude Code’s “API Error: 403 Request not allowed” after login means your account isn’t allowed to use Claude Code yet. Check the plan, role and proxy.
- OAuth error: Invalid code. Please make sure the full code was copiedClaude Code’s “OAuth error: Invalid code” means the login code expired or was cut off when pasted. How to sign in on SSH, WSL and narrow terminals.
- API Error: 400 This organization has been disabled“This organization has been disabled” in Claude Code usually means an old ANTHROPIC_API_KEY is overriding your subscription. How to check and fix it.
Requests and models (7)
- Prompt is too long / Context limit reachedFix “Prompt is too long” and “Context limit reached” in Claude Code: compact, clear or trim what fills the context window, with exact steps.
- There's an issue with the selected modelFix “There’s an issue with the selected model” in Claude Code: pick a valid model, replace stale IDs, and set the right models for Ollama or proxies.
- API Error: Output blocked by content filtering policyClaude Code’s “Output blocked by content filtering policy” means Anthropic’s output filter stopped a reply that was reproducing existing text, such as a licence file.
- Auto mode is unavailable — the server returned no safety verdictFix Claude Code’s auto mode stop, “the server returned no safety verdict”: send another message, check your gateway or proxy, or switch permission modes.
- API Error: 400 due to tool use concurrency issues“API Error: 400 due to tool use concurrency issues” means the conversation history got out of order. Rewind to a checkpoint and update Claude Code to recover.
- Claude Code is unable to respond to this request (Usage Policy)Why Claude Code says a request “appears to violate our Usage Policy” or “can’t help with this”, why it repeats, and how to get the session working again.
- API Error: Claude’s response exceeded the 32000 output token maximumClaude Code’s “response exceeded the 32000 output token maximum” means one reply hit its output cap. Continue, split the work or raise the limit.
Install and setup (5)
- command not found: claudeFix “command not found: claude” on macOS and Linux and “'claude' is not recognized” on Windows: add Claude Code to your PATH, step by step.
- Claude Code on Windows requires either Git for Windows (for bash) or PowerShellFix “Claude Code on Windows requires either Git for Windows (for bash) or PowerShell”: add PowerShell to PATH or point Claude Code at bash.exe.
- Raw mode is not supported on the current process.stdinClaude Code tried to show an interactive prompt while its input wasn’t a terminal, typically during a piped install.
- syntax error near unexpected token `<' when installing Claude CodeThe install URL returned a web page instead of the install script, usually because Claude Code isn’t available in your region or a proxy blocked it.
- Error: Claude Code process exited with code 1“Claude Code process exited with code 1” means the CLI behind VS Code, an IDE or an SDK app crashed. How to find the real error under it and fix it.
Steps
How do I look up a Claude Code error?
- Copy the error from your terminal, or just the code in brackets such as UNABLE_TO_GET_ISSUER_CERT_LOCALLY.
- Paste it into the search box and open the matching error.
- Read what it means and check the causes that fit your situation.
- Work through the fixes in order; each one says how to confirm it worked.
Method
Is Claude Code down, or is it my setup?
Start with status.claude.com, Anthropic’s status page. If it shows an incident for Claude Code or the Claude API, the problem is on Anthropic’s side and nothing on your machine will fix it. If it’s green, the error almost always comes from your network, your login or your settings, and the message tells you which. Claude Code’s messages are short because they appear in a terminal. Each page here expands one of them: what went wrong, the situations that cause it, and the fixes in the order worth trying, with the exact commands for each operating system.
What do API Error 500 and 529 mean?
Both come from the API, not from you. A 500 is an unexpected failure inside the API; a 529 means it’s at capacity for everyone, doesn’t count against your usage, and often clears if you switch model. They usually pass within minutes. A 429 or a session limit is yours: see Claude Code usage limits and pricing. The “Server and limits” group has 6 pages.
How do I fix SSL certificate errors in Claude Code?
Corporate networks that inspect HTTPS make Claude Code distrust the connection, which shows up as codes like UNABLE_TO_GET_ISSUER_CERT_LOCALLY or SELF_SIGNED_CERT_IN_CHAIN. The issuer certificate page walks through the export on Windows, macOS and Linux. The fix is to trust your company’s root certificate, usually through NODE_EXTRA_CA_CERTS, never to turn checking off. The “Certificates and network” group has 10 pages, including proxy and timeout errors.
Why does Claude Code keep asking me to log in?
Usually because the saved login expired and couldn’t refresh, or was revoked, or because Claude Code finds no credential it can use. Credentials cause other errors too: an ANTHROPIC_API_KEY left in the environment quietly takes priority over a subscription login, leading to low rate limits, “credit balance is too low” or 401 errors. Check what your Claude Code settings.json and shell set before you log in again.
How are these pages checked?
Messages are matched against Anthropic’s error reference and the text inside the Claude Code 2.1.293 build, so the wording matches what you see. Fixes follow Anthropic’s documentation, rewritten with more context. Where a page says a step was tested, it was run on a real machine. Each page shows the date it was last verified and links its sources.
Some fixes need numbers from elsewhere on this site: the context window checker helps with “prompt is too long”, and the subscription vs API calculator helps decide whether a plan or the API suits your usage limits. If an MCP server won’t start or connect, fix MCP config problems by rebuilding the file in the generator.
FAQ
Frequently asked questions
Is Claude Code down right now?
Check status.claude.com, Anthropic’s status page, which lists Claude Code, the Claude API and claude.ai separately; this site can’t show live status. If the status page shows no incident, search your exact message here: the cause is more likely your network, login or settings.
What is the difference between a 529 and a 500 error?
Neither is caused by your settings. A 529 means the API is at capacity for all users, so trying again in a few minutes or switching model with /model helps, because capacity is tracked per model. A 500 is an unexpected failure inside the API; wait a minute and send the message again. A 429 is different: it’s your own rate limit.
Why does Claude Code say “SSL certificate verification failed” at work but not at home?
Most company networks inspect HTTPS traffic with a proxy that re-signs it using the company’s own root certificate. Claude Code doesn’t trust that root unless it can read it from your operating system’s store or you point NODE_EXTRA_CA_CERTS at it. The UNABLE_TO_GET_ISSUER_CERT_LOCALLY page walks through exporting the certificate on Windows, macOS and Linux.
Is it safe to set NODE_TLS_REJECT_UNAUTHORIZED=0?
No. It turns off certificate checking for everything Claude Code does, so anyone on the network path could read or alter your traffic, including your API key and code. Trust the specific certificate your company uses instead.
What’s the difference between a 429 and a 529 error?
A 429 means you hit a rate limit for the key or project you’re using. A 529 means the API is at capacity for everyone; it doesn’t count against your usage, and switching to another model usually helps.
How were these fixes checked?
Every message is checked against Anthropic’s Claude Code error reference and the strings in the Claude Code 2.1.293 build, on 2026-10-08. Fixes follow Anthropic’s documentation, and steps marked as tested were run on a real machine, such as exporting a certificate on Windows and confirming Node loads it.
The message I see is slightly different. Is it the same error?
Probably. Claude Code reworded several messages between versions, and the same failure reads differently during /login, in -p mode or in the Desktop app. Each page lists the variants it covers, including older wordings. Search for the code in brackets, such as SELF_SIGNED_CERT_IN_CHAIN, if the wording doesn’t match.
Related
Related tools
- CLAUDE.md GeneratorGenerate a CLAUDE.md and AGENTS.md for your project.
- MCP Config GeneratorBuild MCP server configs for Claude, Cursor, VS Code and Devin Desktop (Windsurf).
- Model ID ReferenceCopy current API model IDs for Claude, GPT, Gemini and more.
- API Key CheckerCheck whether an API key works, without storing it.
- Subscription vs API CalculatorFind out whether a chat plan or the API is cheaper for you.
- AI Token CounterCount tokens for GPT, Claude, Gemini, DeepSeek, Qwen and more.