errors.md +34 −1
19將您在終端中看到的訊息與下方的部分相符。19將您在終端中看到的訊息與下方的部分相符。
20 20
21| 訊息 | 部分 |21| 訊息 | 部分 |
2222| :----------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------ || :-------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------ |
23| `API Error: 500 ... Internal server error` | [Server errors](#api-error-500-internal-server-error) |23| `API Error: 500 ... Internal server error` | [Server errors](#api-error-500-internal-server-error) |
24| `API Error: Repeated 529 Overloaded errors` | [Server errors](#api-error-repeated-529-overloaded-errors) |24| `API Error: Repeated 529 Overloaded errors` | [Server errors](#api-error-repeated-529-overloaded-errors) |
25| `Request timed out` | [Server errors](#request-timed-out),或如果訊息提及您的網際網路連線,則為 [Network](#unable-to-connect-to-api) |25| `Request timed out` | [Server errors](#request-timed-out),或如果訊息提及您的網際網路連線,則為 [Network](#unable-to-connect-to-api) |
50| `thinking.type.enabled is not supported for this model` | [Request errors](#thinking-type-enabled-is-not-supported-for-this-model) |50| `thinking.type.enabled is not supported for this model` | [Request errors](#thinking-type-enabled-is-not-supported-for-this-model) |
51| `max_tokens must be greater than thinking.budget_tokens` | [Request errors](#thinking-budget-exceeds-output-limit) |51| `max_tokens must be greater than thinking.budget_tokens` | [Request errors](#thinking-budget-exceeds-output-limit) |
52| `API Error: 400 due to tool use concurrency issues` | [Request errors](#tool-use-or-thinking-block-mismatch) |52| `API Error: 400 due to tool use concurrency issues` | [Request errors](#tool-use-or-thinking-block-mismatch) |
53| `Claude Code is unable to respond to this request, which appears to violate our Usage Policy` | [Request errors](#usage-policy-refusal) |
53| 回應品質似乎低於平常 | [Response quality](#responses-seem-lower-quality-than-usual) |54| 回應品質似乎低於平常 | [Response quality](#responses-seem-lower-quality-than-usual) |
54 55
55## 自動重試56## 自動重試
283* 之後執行 `/status` 以確認活躍的認證是您的訂閱284* 之後執行 `/status` 以確認活躍的認證是您的訂閱
284* 如果未設定環境變數且錯誤持續存在,則已停用的組織是與您的 `/login` 相關聯的組織。聯絡支援或使用不同的帳戶登入。285* 如果未設定環境變數且錯誤持續存在,則已停用的組織是與您的 `/login` 相關聯的組織。聯絡支援或使用不同的帳戶登入。
285 286
287### Your organization has disabled Claude subscription access
288
289您的 Claude 組織不允許使用訂閱登入來登入 Claude Code。使用相同帳戶再次執行 `/login` 會傳回相同的錯誤。
290
291```text theme={null}
292Your organization has disabled Claude subscription access for Claude Code · Use an Anthropic API key instead, or ask your admin to enable access
293```
294
295這是一個伺服器端組織設定,因此無法從本機設定、環境變數或 CLI 旗標覆蓋。Agent SDK 和 `-p` 非互動式模式將此呈現為 `oauth_org_not_allowed` 錯誤代碼。
296
297**要做什麼:**
298
299* 要求您的管理員為您的組織啟用 Claude Code 存取
300* 改用 Console API 金鑰進行認證,而不是您的訂閱。請參閱 [Claude Console authentication](/zh-TW/authentication#claude-console-authentication) 以了解設定。
301* 如果您是管理員且看不到啟用存取的選項,請聯絡 [Anthropic support](https://support.claude.com)
302
286### Routines are disabled by your organization's policy303### Routines are disabled by your organization's policy
287 304
288您的 Team 或 Enterprise 管理員已在組織層級關閉了例程。當您嘗試建立或執行例程時會出現此錯誤,包括從 `/schedule` 和 claude.ai/code 上的 [Routines](/zh-TW/routines) UI。305您的 Team 或 Enterprise 管理員已在組織層級關閉了例程。當您嘗試建立或執行例程時會出現此錯誤,包括從 `/schedule` 和 claude.ai/code 上的 [Routines](/zh-TW/routines) UI。
573 590
574* 執行 `/rewind`,或按 Esc 兩次,以回退到損壞轉向之前的檢查點並從那裡繼續。請參閱 [Checkpointing](/zh-TW/checkpointing) 以了解如何建立和恢復檢查點。591* 執行 `/rewind`,或按 Esc 兩次,以回退到損壞轉向之前的檢查點並從那裡繼續。請參閱 [Checkpointing](/zh-TW/checkpointing) 以了解如何建立和恢復檢查點。
575 592
593### Usage Policy refusal
594
595API 拒絕回應,因為對話中的內容觸發了 [Usage Policy](https://www.anthropic.com/legal/aup) 檢查。訊息包括一個請求 ID,如果您認為拒絕不正確,可以引用該 ID 與支援部門聯繫。
596
597```text theme={null}
598API Error: Claude Code is unable to respond to this request, which appears to violate our Usage Policy (https://www.anthropic.com/legal/aup). Please double press esc to edit your last message or start a new session for Claude Code to assist with a different task.
599```
600
601檢查評估整個對話,而不僅僅是您的最新提示,因此在同一工作階段中傳送新訊息通常會重新觸發相同的拒絕。在使用 `--continue` 或 `--resume` 退出並重新開啟工作階段後也是如此,因為磁碟上的文字記錄仍然包含觸發內容。
602
603**要做什麼:**
604
605* 按 Esc 兩次或執行 `/rewind` 以回退到觸發拒絕的轉向之前的檢查點,然後重新表述或採取不同的方法。請參閱 [Checkpointing](/zh-TW/checkpointing)。
606* 如果您無法識別哪個轉向導致了它,請執行 `/clear` 以在同一專案中啟動新的對話。您之前的對話已保留在磁碟上,並在 `/resume` 中保持可用。
607* 在 [non-interactive mode](/zh-TW/headless)(`-p`)中,其中無法使用 rewind,請使用重新表述的提示重試或啟動新的工作階段而不使用 `--continue`。
608
576## 回應品質似乎低於平常609## 回應品質似乎低於平常
577 610
578如果 Claude 的答案似乎不如您預期的那樣有能力,但沒有顯示錯誤,原因通常是對話狀態而不是模型本身。Claude Code 不會無聲地更改模型版本。它可以在特定情況下切換到後備模型,例如達到 Opus 配額或 Bedrock 或 Vertex AI 區域缺乏您的模型;下面的模型選擇檢查會捕獲兩者,[Model configuration](/zh-TW/model-config) 解釋何時應用後備。611如果 Claude 的答案似乎不如您預期的那樣有能力,但沒有顯示錯誤,原因通常是對話狀態而不是模型本身。Claude Code 不會無聲地更改模型版本。它可以在特定情況下切換到後備模型,例如達到 Opus 配額或 Bedrock 或 Vertex AI 區域缺乏您的模型;下面的模型選擇檢查會捕獲兩者,[Model configuration](/zh-TW/model-config) 解釋何時應用後備。