What this thread does
The problem
Retrying helps overload but cannot repair an invalid request. Record text, provider, model and claude --version. Redact secrets from logs.
Versions and status
| Item | Verified finding |
|---|---|
| Release | As of November 2026, Claude Code 2.1.330, released 2026-11-20 (both checked 2026-11-23), official release |
| Provider-switch fix | Claude Code 2.1.302, released 2026-10-16 (both checked 2026-10-20), official release |
| Scope | Interactive CLI recovery; no pricing or licence comparison |
What changed
- 2026-10-16 (checked 2026-10-20): provider-switch fix for
diagnostics: Extra inputs are not permitted. - 2026-10-19 (checked 2026-10-20): interrupted-compaction fix for
Prompt is too long.
400 after switching provider
- Exact message:
diagnostics: Extra inputs are not permitted. - Cause: the documented client bug after switching to Vertex or Bedrock mid-session; a different rejected field requires separate diagnosis.
- Fix: run
claude --version, thenclaude updatefor native/npm installations. Restart and test a read-only prompt. Homebrew usesbrew upgrade claude-codeorbrew upgrade claude-code@latest, matching the installed cask. Stable can lag latest; see the setup guide. - Do not: retry the unchanged invalid payload indefinitely or strip unrelated fields from every gateway request.
- Source: official provider-switch fix, checked 2026-10-20.
429 or temporary server throttling
- Exact CLI message:
API Error: Server is temporarily limiting requests (not your usage limit) · Rate limited. - Cause: the reported message distinguishes server throttling from subscription quota. Separately, HTTP 429 with API type
rate_limit_errorcan mean throughput, a tier spend cap or a Claude Code workspace spend limit (other spend limits you set return 400). Identify the cap first. - Fix: run
/usage; for an interactive subscription wait, inspect/rate-limit-options. For temporary throttling, reduce simultaneous session starts and retry one small prompt after the server's delay. API clients should honorretry-afterwhen present. Spend caps need the applicable reset or an admin budget decision. - Do not: fan out more sessions, treat remaining quota as spare server capacity, or buy credits before identifying the cap.
- Sources: NowatariSoma's exact-message report, official API definitions, rate-limit rules and interactive wait controls; checked 2026-10-20. Staggered starts are a reporter's mitigation, not a guarantee.
529 Overloaded
- Exact documented display:
529 Overloaded; API typeoverloaded_error. - Cause: temporary upstream capacity pressure.
- Fix: stop adding parallel requests, allow paced retry, then send one small prompt. Use
/statusto record the provider/model for a persistent failure. No sourced CLI command clears upstream overload. - Do not: run a tight retry loop, repeatedly reinstall, or delete the conversation to fix capacity.
- Sources: official troubleshooting index and API overload definition; checked 2026-10-20.
Prompt is too long
- Exact message:
Prompt is too long. - Cause: assembled input exceeds usable context; large tool output or a client bug can contribute. The linked 2.1.304 release (2026-10-19) fixes a specific interrupted-compaction path.
- Fix: try
/compactwhile summarization still works. If it fails, save a short handoff of requirements, changed files and pending checks before/clear; restart with smaller excerpts. Upgrade through the correct installer if the interrupted-compaction trigger matches. - Do not: resend the same huge paste or edit transcript JSONL as the first repair. Failed compaction has its own neighbour below.
- Sources: official compaction fix, context guidance and interactive commands; checked 2026-10-20.
413 request_too_large
- Exact API identifier:
request_too_large, HTTP 413; this is not a universal CLI sentence. - Cause: payload bytes exceed an endpoint limit, distinct from token-context overflow. Messages API limit is 128 MB (checked 2026-10-30).
- Fix: save a handoff, use
/clear, and send a small excerpt without oversized attachments. Wrappers must reduce serialized bytes before retrying. - Do not: expect
/compactto shrink a new attachment or increase retries for unchanged bytes. - Sources: official request-size limits and interactive commands; checked 2026-10-20.
How to migrate
1. Record full message, provider and installation with claude doctor and /status. 2. Upgrade for a matching client fix using the installer-specific commands above; restart and confirm claude --version. 3. Test a minimal read-only prompt, then add the original attachment, context or provider switch one at a time. Preserve the permission policy while diagnosing API failures.
What to test
Test one session for capacity failures and smaller input for size failures. Check that a tool ran only once before replaying a write.
Community evidence
NowatariSoma reports burst starts failing despite remaining usage. Independently, YangChen-AIdev reports conversation duplication and context rejection surviving resume. These are user diagnoses, not confirmed universal causes or locally verified fixes.
Pitfalls
Gateways can generate their own 400s. Local policy failures are not rate limits. A model switch is not a universal repair.
A prompt to give your agent
Your training data predates these changes. Read <https://code.claude.com/docs/en/troubleshooting>, <https://platform.claude.com/docs/en/api/errors> and the release linked for my exact error. Do not guess messages, flags, IDs or reset times. Use redacted error text, provider and CLI version to distinguish validation, throughput, spend cap, overload, token context, bytes and local policy. Propose one read-only test and reversible recovery. Save a handoff before clearing context; never replay a write blindly.
Not for
Unattended retry policy belongs to claude-code-unattended-run-fails-on-429-529-retry-watchdog; failed compaction to claude-code-error-during-compaction-conversation-too-long-context-limit-reached; generic gateway validation to claude-code-p-extra-inputs-gateway-anthropic-beta; guard hooks to claude-code-hook-crashed-but-command-ran-onfailure-block. For model/API migration see claude-5-5-family-which-tier-for-coding and haiku-5-5-api-migration-what-breaks-from-haiku-4-5.
Limits
Checked 2026-10-20. Recoveries were not run. Claude Code's dedicated error-reference page failed to fetch; its troubleshooting index, API docs and release notes were readable. Literal Request too large was not verified, so only the API identifier is included. No universal permission/hook message was verified for this cluster.
Started from a post by @NowatariSoma, packaged by the editor. Original post