Claude Code

Error reference

Runtime errors, HTTP/API statuses, retries, usage limits, authentication, networking, request failures, and CLI conflicts.

This page diagnoses failures after Claude Code starts. For installation, PATH, login, and OAuth, see Installation troubleshooting. For unloaded settings, hooks, MCP, and memory, see Configuration debugging.

A Passion8 error may originate upstream, at the gateway, on your network, or in local configuration. Identify the category before retrying, changing models/settings, or contacting support.

#Quick diagnosis

ErrorCategoryFirst action
API Error: 500Server failureRetry later; check provider/gateway status
Repeated 529 Overloaded errorsCapacityWait or select another available model
Request timed outServer or networkSplit the task; adjust API_TIMEOUT_MS if appropriate
Server error mid-responseInterrupted streamInspect partial output, then continue
You've hit your session limitSubscription/session limitWait for reset or use an available provider
Usage credits required for 1M contextContext eligibilityDisable 1M or meet official account requirements
Request rejected (429)Rate limitWait, reduce concurrency/background agents
Credit balance is too lowBalanceCheck Passion8 balance/key
Not logged inAuthenticationOfficial login or correct Passion8 variables
Invalid API keyAuthenticationCheck credential and variable
Unable to connect to APINetworkProxy, DNS, firewall, Base URL
SSL certificateTLSConfigure corporate CA or fix proxy certificate
Prompt is too longContext sizeCompact, remove large content, split tasks
Request too largePayload sizeReduce attachments, images, PDFs, or tool output
selected modelModel availabilitySelect an available Passion8 model
thinking budget exceeds output limitThinking configurationLower thinking budget or increase output limit
--bg and --print conflictCLI flagsChoose background or print, not both

#Automatic retries

Claude Code retries temporary failures, including 5xx, 529, some 429s, timeouts, and disconnects. A final error often means retries were exhausted.

VariablePurposeRecommendation
CLAUDE_CODE_MAX_RETRIESRetry countLower for fast-failing CI
CLAUDE_CODE_RETRY_WATCHDOGExtended capacity retries unattendedUse deliberately for overnight jobs
API_TIMEOUT_MSPer-request timeoutIncrease for slow proxies or long output when appropriate

Certificate failures and errors after visible output are not blindly replayed. Preserving partial output avoids duplicate tool execution.

#Server errors

#500

A provider/gateway internal failure is not a malformed prompt or permission-rule problem.

  1. Wait one or two minutes and retry.
  2. Select another available model with /model.
  3. If isolated to Passion8, check its console and model supply status.
  4. If isolated to the official API, check Anthropic status.

#529

Capacity congestion is not the same as exhausted account credit. Avoid many background agents hitting one model simultaneously.

ScenarioRecommendation
Interactive developmentRetry later or use another available Sonnet/Opus model
Print-mode scriptBound retries and preserve input on failure
Batch/multiple agentsReduce concurrency and queue work
One-hour-cache workloadRetry without unnecessary model/effort changes

#Interrupted response

When partial output already exists, replaying the whole turn can repeat tool calls.

  • Read the partial answer.
  • Ask to continue from the last section.
  • If a tool ran before interruption, inspect actual file/command state first.

#Usage and credit

ErrorMeaningPassion8 action
Session/weekly limitOfficial subscription limitA gateway key does not alter subscription limits; gateway variables select the API route
1M context credits requiredOfficial eligibility missingUse normal context and compact instead of forcing 1M
Temporary limiting requestsProvider throttlingReduce concurrency and wait
429Request or quota window limitReduce concurrent large-context requests
Credit balance too lowKey/account balanceCheck balance, key state, and model permissions

#Authentication errors

PathVariables/commandsUse
Official account/login, OAuth, subscriptionOfficial hosted surfaces and remote features
API/gatewayANTHROPIC_BASE_URL, AUTH_TOKEN, API_KEYPassion8, custom providers, CI

Recommended Passion8 configuration:

export ANTHROPIC_BASE_URL="https://passion8.cc"
export ANTHROPIC_AUTH_TOKEN="sk-YOUR_PASSION8_API_KEY"
claude -p "Reply only with ok"

Claude Code uses the root https://passion8.cc without /v1. The /v1 suffix is common in OpenAI-compatible clients, not this setup.

ErrorCheck
Not logged inFor Passion8, ensure gateway variables reached the process; official subscription uses /login
Could not resolve authentication methodAvoid incomplete/conflicting OAuth, API-key, and gateway configuration
Invalid API keyComplete active key in the correct variable
Organization disabledOfficial organization/policy; local settings cannot repair it
OAuth token expiredReauthenticate the official account or use the intended gateway credentials
Cloud-provider credentialsProvider credential chain and profile

#Network and certificates

SymptomCauseAction
Unable to connectDNS/proxy/firewall/URLCheck curl -I https://passion8.cc and proxy settings
TLS certificateCorporate interception or missing CANODE_EXTRA_CA_CERTS or IT-managed trust
Cloud session host not allowedDisallowed hostUse local execution or update the allowlist
Long wait before failureProxy handshake or packet lossInvestigate network; adjust timeout only as needed

#Request errors

#Context too long

Prompt-too-long, request-too-large, and compaction failures often involve excessive context or attachments.

  • Inspect /context.
  • Summarize with /compact.
  • Start a new session with /clear.
  • Remove unnecessary logs, screenshots, PDFs, and MCP output.
  • Split large repository work by directory.

#Models and thinking

ErrorAction
Selected model issueChoose one actually available from the provider
Opus unavailableUse Sonnet or an account/provider with Opus access
Organization restrictionAsk the administrator to change policy
Thinking unsupportedUse a compatible model or supported non-thinking configuration
Thinking budget exceeds outputReduce MAX_THINKING_TOKENS or raise output budget on compatible models
Tool-use block mismatchInspect request structure and gateway body rewriting

#Cache effects

Errors do not themselves change TTL, but recovery actions can alter cache identity.

ActionEffect
Retry same model/effortMore likely to reuse the prefix
Switch modelDifferent cache identity; initial miss likely
Change effort/thinkingCan invalidate reuse
Continue after compactSummary replaces history
Repair MCP/hooksSchemas or instructions may change
Use clean configurationDiagnostic only, not a normal hit-rate measurement

See Commands and cache effects and Prompt caching.

#Official references

Support

Need help?

For setup, billing, or model issues, email us. Check the status page for uptime.

WeChat / QQ support is available at the bottom right.