API Error 400 (invalid_request_error)

The request itself was malformed or violated a schema constraint.

2,591 issues · 129 open · 2,462 resolved (95%) · first seen Feb 24, 2025

First response · api

What to do now

Most likely: The API rejected or could not complete the request.

  1. Identify the HTTP status and error type before changing local configuration.
  2. Retry once with a short backoff; repeated failures should be compared with the official status page.
  3. If only one project fails, reproduce in a new short session to separate service trouble from request state.

These are conservative triage steps, not an official Anthropic fix. Use the issue and workaround evidence below before making a destructive configuration change.

Is this getting better or worse?

This class of problem is converging. 226 new reports in the last 90 days vs 769 in the 90 before — -71%. The open backlog peaked at 313 in 2026-05 and sits at 129 today.

0 78 157 235 313 2025-022025-082026-022026-08
2025-02 — First reports2026-05 — Peak backlog (313 open)

Derived by counting each matching issue from its creation date until it closed. First-party computation over the anthropics/claude-code tracker — the trend is not published anywhere upstream.

Which builds report this

1,099 of these reports name the Claude Code build they were running, spanning 169 releases. Heaviest reporters:

Report volume, not a defect count: an issue can mention a build without that build having caused the failure. Versions come from the version string in the bug-report template, matched against real published tags.

Do these get fixed?

Median time to close is 4 days across 2,462 closures. Of the 2,462 closures with a recorded reason, 18% were closed as completed and 2,008 as not-planned or duplicate. The most recent completed fix landed in 2026-08.

Workarounds reported by the community

447 of these issues post a workaround someone says worked. The highest-engagement ones:

API Error: 400 due to tool use concurrency issues. Run /rewind to recover the conversation. - [Bug] Anthropic API Error: Unexpected 400 Bad Request Response
…67 (my report) 8887 8893 8894 8895 8897 8903 EDIT (Oct 14): Workaround for tool use/tool result 400 errors: A research-backed solution was posted on Oct 10: Add the provided instructions to your global CLAUDE.md (~/.clau…
Found in the thread of #8763 · resolved
[Bug] VS Code extension: Tool use concurrency error after Jan 23-24 update
✅ WORKAROUND FOUND The fix: Install VS Code extension version 2.1.17 while keeping CLI at 2.1.19 Steps: 1. In VS Code, go to Extensions 2. Find "Claude Code for VS Code" 3. Click the dropdown arrow next to Uninstall → "I…
Found in the thread of #20571 · still open
[Bug] Anthropic API Error: Tool Use Concurrency Limitation
I tried many workaround without success. In my case, it was a specific PDF file causing the issue. Once unreferenced, it works.
Found in the thread of #9002 · resolved
[BUG] Oversized image breaks conversation permanently - no way to recover without starting new chat
…retry without failed images, or client-side image resizing Workaround Currently, users must start a new conversation and manually reconstruct any important context.
Found in the description of #13480 · resolved
[BUG] Opus 4.7 doesn't work with bedrock
…pting both shapes) and what Bedrock requires (header only). Workaround for anyone blocked today A ~100 line local HTTP shim that moves → header and forwards to makes Claude Code 2.1.111 + Opus 4.7 work end-to-end. Point…
Found in the thread of #49238 · resolved

Excerpts are quoted from the linked issue so you can judge relevance before opening it. Threads that only ask for a workaround, or report that there is none, are excluded. These are community suggestions, not official guidance from Anthropic — read the full thread before applying one.

Matching issues 1–100

Ranked by community engagement (reactions weighted over comments). Listing the top 300 of 2,591 matches; the statistics above cover all 2,591.

Related aggregations

  1. API Error 500 (internal server error)

    603 issues
  2. API Error 401 (authentication_error)

    441 issues
  3. API Error 429 (rate_limit_error)

    690 issues
  4. API Error 529 (overloaded_error)

    254 issues
  5. API Error 403 (permission_error)

    235 issues
  6. API Error 413 (request_too_large)

    38 issues