Text of code.claude.com › docs › zh-CN › errors as Styx crawled it on Nov 20, 2026. The page may have changed since. Only its words are kept, without pictures or layout, and only the first part of a long page.

Open the live page

错误参考 - Claude Code Docs

Documentation Index Fetch the complete documentation index at: /docs/llms.txt Use this file to discover all available pages before exploring further. 跳转到主要内容 助手 AI生成的回答可能包含错误。 本页列出 Claude Code 显示的运行时错误以及如何从每个错误中恢复,以及当响应似乎有问题但没有错误时要检查的内容。对于安装错误(如 command not found 或设置期间的 TLS 失败),请参阅 排查安装和登录问题 。 除了 包装器和 IDE 错误 (由启动程序打印而不是 Claude Code 本身打印)外,这些错误和恢复命令适用于 CLI、 桌面应用 和 云端会话 ,因为这三个都包装相同的 Claude Code CLI。对于其他特定于使用入口的问题,请参阅该使用入口页面上的故障排除部分。 Claude Code 调用 Claude API 来获取模型响应,因此大多数运行时错误映射到底层 API 错误代码。本页介绍每个错误在 Claude Code 中的含义以及如何恢复。有关原始 HTTP 状态代码定义,请参阅 Claude Platform 错误参考 。 查找您的错误 将您看到的消息与下面的部分相匹配。 消息 部分 API Error: 500 Internal server error 服务器错误 API Error: Repeated 529 Overloaded errors 服务器错误 Opus is experiencing high load / Fable is experiencing high load 服务器错误 Request timed out 服务器错误 ,或如果消息提到您的互联网连接,则为 网络 API Error: No response from API 服务器错误 API Error: Stream idle timeout - no chunks received 流式空闲看门狗 ,或在 Claude apps gateway 后方时为 长时间思考导致代理超时 Server error mid-response.

The response above may be incomplete. 服务器错误 Connection lost mid-response / Your computer went to sleep mid-response / The response stopped arriving 服务器错误 Connection closed mid-response / Response stalled mid-stream 服务器错误 Part of the response never arrived / The response stream was malformed 服务器错误 API Error: Content block not found / API Error: Content block already closed / API Error: Stream event unreadable 服务器错误 Connection lost before a response was produced / Your computer went to sleep before a response was produced / The response stalled before a response was produced 自动重试 Connection closed while thinking / Response stalled while thinking 自动重试 Connection lost while your computer was asleep 自动重试 The model's tool call could not be parsed (retry also failed). 自动重试 <model> is temporarily unavailable, so auto mode cannot determine the safety of... 服务器错误 Auto mode could not evaluate this action and is blocking it for safety 服务器错误 Not run · auto mode's check had no usable answer 服务器错误 Auto mode classifier transcript exceeded context window 服务器错误 Agent aborted: auto mode classifier request refused by the safety safeguard 服务器错误 The server-side auto mode classifier gave no verdict 服务器错误 <tool> was not reviewed and did not run: the conversation is too long for auto mode's classifier 服务器错误 Auto mode is unavailable — the server returned no safety verdict for the last 10 responses 服务器错误 Agent terminated early due to an API error 服务器错误 You've hit your session limit / You've hit your weekly limit / You've hit your Opus limit / You've hit your Sonnet limit 使用限制 Usage credits required for 1M context 使用限制 Usage credits ran out before the response was finished. 添加使用额度 the prompt to confirm went unanswered · nothing was sent ,自 v2.1.324 起 用量限制 Claude stopped here · send a message to be asked again 用量限制 Server is temporarily limiting requests 使用限制 Request rejected (429) 使用限制 Credit balance is too low 使用限制 You've hit your monthly spend limit / You've hit your individual spend limit / You've hit your org's monthly spend limit / You've hit your channel's monthly spend limit / You've hit your team's shared budget / You've hit your individual usage limit 使用限制 Could not update your spend limit / Could not remove your spend limit 用量限制 spend limit reached / spend limit unavailable / This request exceeds your group's budget 用量限制 Not logged in · Please run /login 身份验证 Couldn't save your login 身份验证 Sign in again to take your previous account or API key off the config file. 身份验证 Your account or API key may still be in the config file.

Run claude auth logout. 身份验证 Authentication required · Sign in again to continue 身份验证 Could not resolve authentication method 身份验证 Invalid API key 身份验证 Your apiKeyHelper script is failing 身份验证 Your organization's settings need an update 身份验证 Couldn't load your organization's settings. Check your connection 身份验证 Restart Claude Code to finish signing in 身份验证 Invalid auth token · Fix external auth token 身份验证 Invalid ANTHROPIC_CUSTOM_HEADERS · Fix the environment variable 身份验证 Invalid request header from the environment · Fix the environment variable 身份验证 This organization has been disabled 身份验证 Your organization has disabled API key authentication 身份验证 Your organization has disabled Claude subscription access 身份验证 Scheduled tasks are off for your organization 身份验证 Routines are off for your organization 身份验证 Remote Control is only available when using Claude via api.anthropic.com 身份验证 OAuth token refresh failed — run /login to re-authenticate 身份验证 JWT refresh failed: no OAuth token — run /login 身份验证 Claude.ai login expired 身份验证 Claude.ai login was rejected — run /login, then /remote-control 身份验证 OAuth token unavailable — run /login to restore Remote Control 身份验证 Signed out of Claude — run /login, then /remote-control 身份验证 Remote Control could not renew this computer's connection 身份验证 signed-in claude.ai account or organization changed on this machine 身份验证 Remote Control stopped — the app running this session is now signed in to a different Claude account 身份验证 Remote Control stopped — the app running this session is signed out of Claude 身份验证 Couldn't verify your organization's policy for remote control Troubleshoot Remote Control Remote Control didn't finish connecting 启动 Remote Control 会话 Remote Control is disabled by your organization's policy Troubleshoot Remote Control Remote Control was turned off by your organization's policy Troubleshoot Remote Control Session failed: working folder not found: Remote Control 故障排除 The program file this Remote Control started from is gone Remote Control 故障排除 Session failed: program not found: Remote Control 故障排除 Session failed: spawn error: 后跟一条 ENOENT 消息 Remote Control 故障排除 Remote Control disconnected: 后跟提及 share link 的原因 Remote Control OAuth token revoked / OAuth token has expired 身份验证 Failed to authenticate: OAuth token revoked 身份验证 Your account does not have access to Claude.

Please login again or contact your administrator. 身份验证 API Error: 401 Invalid authentication credentials 身份验证 Login expired · Please run /login 身份验证 Warning: this sign-in 检查已存储的登录何时结束 The browser can't return the sign-in to Claude Code automatically 身份验证 Couldn't start the local listener that receives the browser sign-in. Try again. 身份验证 Failed to start OAuth callback server 身份验证 Claude login not accepted · Run /login, then try again 身份验证 Artifacts need a claude.ai login 身份验证 Not signed in to the Cloud gateway — run /login. 身份验证 Administrator policy requires a Cloud gateway sign-in on this machine 身份验证 Managed settings on this machine configure a Cloud gateway si

The rest of this page is on the live site.