🌐
GitHub
github.com › anthropics › claude-code › issues › 558
API Error: 400 while using the Claude Code in my Terminal · Issue #558 · anthropics/claude-code
March 19, 2025 - Hi there I have been facing the same error "API Error: 400" for the last three days. ⎿ API Error: 400 I have taken every single step to solve this issue, but nothing has worked. My Anthro...
Published   Mar 19, 2025
🌐
Stack Overflow
stackoverflow.com › questions › 79632861 › api-error-400-invalid-beta-flag-when-trying-to-use-claude-code-with-bedrock-u
"API Error: 400 invalid beta flag" when trying to use Claude Code with Bedrock using claude 3.5 haiku - Stack Overflow
Using 3.7 sonnet works fine $ ANTHROPIC_MODEL='us.anthropic.claude-3-7-sonnet-20250219-v1:0' claude -p hi Hello! How can I help you today? However, using 3.5 haiku results in a cryptic error $
🌐
GitHub
github.com › anthropics › claude-code › issues › 8763
API Error: 400 due to tool use concurrency issues. Run /rewind to recover the conversation. - [Bug] Anthropic API Error: Unexpected 400 Bad Request Response · Issue #8763 · anthropics/claude-code
October 2, 2025 - anthropics / claude-code Public · Notifications · You must be signed in to change notification settings · Fork 3.4k · Star 47.9k · New issueCopy link · New issueCopy link · Closed · Closed · API Error: 400 due to tool use concurrency issues.
Published   Oct 02, 2025
🌐
Claude
docs.claude.com › en › api › errors
Errors - Claude Docs
400 - invalid_request_error: There was an issue with the format or content of your request. We may also use this error type for other 4XX status codes not listed below. 401 - authentication_error: There’s an issue with your API key.
🌐
Stack Overflow
stackoverflow.com › questions › 79683907 › error-in-the-name-of-claude-4-sonnet-while-using-in-cursor-as-custom-model
Error in the name of Claude 4 sonnet while using in cursor as custom model - Stack Overflow
We encountered an issue when using your API key: Provider was unable to process your request API error: Request failed with status code 400: { "error": { "message": "claude-
🌐
GitHub
github.com › anthropics › claude-code › issues › 1881
anthropics/claude-code - [BUG] API Error: 400 {"type":"
June 10, 2025 - spits out this error and stops working (I need to start a new instance): API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.16: tool_use ids were found without tool_result blocks immediately after: toolu_01ENfqixDcscyvWNA4g95Ucw.
Published   Jun 10, 2025
🌐
GitHub
github.com › anthropics › claude-code › issues › 10199
[BUG] API Error 400 - Thinking Block Modification Error · Issue #10199 · anthropics/claude-code
October 23, 2025 - These blocks must remain as they were in the original response."},"request_id":"req_011CUQZ6ttKtJbU8JQRYyizo"} ### Error Repetition Pattern Line 14957: User asks question → API Error 400 Line 14961: User asks same question → API Error 400 (same request) Line 14965: User asks same question → API Error 400 (same request) Line 14969: User references the error itself → API Error 400 Line 14974: User asks to update memory files → API Error 400 ### Technical Details **API Endpoint**: Anthropic Claude API (claude.code integration) **Error Type**: `invalid_request_error` **Error Message Pattern**: messages.{N}.content.{M}: `thinking` or `redacted_thinking` blocks in the latest assistant message cannot be modified.
Published   Oct 23, 2025
Find elsewhere
🌐
GitHub
github.com › anthropics › claude-code › issues › 9433
[BUG] API Error: 400 due to tool use concurrency issues. ...
October 12, 2025 - I am using the latest version of Claude Code · Randomly every 15 minutes of usage I've got this, can't do any more complicated prompt without trigger this. It's making a CC unusable! API Error: 400 due to tool use concurrency issues. Run /rewind ...
Published   Oct 12, 2025
🌐
Cursor
forum.cursor.com › support › bug reports
Override Anthropic Base URL automatically switches on when using Anthropic BYOK - Bug Reports - Cursor - Community Forum
1 day ago - Where does the bug appear (feature/product)? Cursor IDE Describe the Bug The Override OpenAI Base URL gets automatically enabled if the Anthropic API Key is enabled, and the Cursor IDE will attempt to use the Override OpenAI Base URL when using Claude models.
🌐
GitHub
github.com › anthropics › claude-code › issues › 6376
[BUG] API Error: 400: ... invalid JSON .. in prompt. · Issue #6376 · anthropics/claude-code
August 22, 2025 - API Error: 400 {"type":"error"...message":"The request body is not valid JSON: no low surrogate in string: line 1 column 131554 (char 131553)"},"request_id":"req_011CSPWrWStU2RzGjKwZWGLo"} This cannot be cleared by /compact...
Published   Aug 22, 2025
🌐
Claude
candevsdosomething.com › home › claude › invalid request error api error 400 for cloud code in web version
Invalid Request Error API Error 400 for Cloud Code in Web Version | CanDevsDoSomething
3 weeks ago - To resolve the API Error 400 when using cloud code, start by ensuring that your requests are properly formatted. Verify that all required parameters are included and that JSON syntax is correct, as improperly formatted requests are a common ...
🌐
Hacker News
news.ycombinator.com › item
Claude Is Down | Hacker News
September 10, 2025 - API Error (503 upstream connect error or disconnect/reset before headers. reset reason: connection timeout) · Retrying in 38 seconds… (attempt 7/10) API Error (503 upstream connect error or disconnect/reset before headers. reset reason: remote connection failure, transport failure reason: ...
🌐
Reddit
reddit.com › r/claudeai › [fix] claude code error: "error during compaction... thinking blocks cannot be modified" (api error 400)
r/ClaudeAI on Reddit: [Fix] Claude Code Error: "Error during compaction... thinking blocks cannot be modified" (API Error 400)
2 weeks ago -

Hey everyone,

I wanted to share a solution for a specific error I’ve been encountering in Claude Code. After using a session for a few hours, the conversation compaction fails, and I get locked out with this API Error 400:

Error: Error during compaction: Error: API Error: 400

{"type":"error","error":{"type":"invalid_request_error","message":"messages.7.content.1: \thinking` or `redacted_thinking` blocks in the latest assistant message cannot be modified. These blocks must remain as they were in the original response."}}`

Simply closing the terminal or restarting didn't fix it for me immediately. However, I found a specific workflow that forces the compaction to go through.

The Solution:

  1. Close the terminal completely.

  2. Open a new terminal and run claude--resume and choose your conversation

  3. When the error appears (or before you type anything else), change the model by typing /model

  4. Then select sonnet 4.5

  5. Send a simple prompt like: "What happened bro?"

  6. This seems to force the conversation to compact successfully without the error.

  7. Once the compaction is done, use /model again to switch back to your preferred model (eg. Opus 4.5) and continue coding.

I hope this saves someone the headache I went through these 3-4 days.

🌐
Cursor
forum.cursor.com › support › bug reports
Why using api key is impossible? - Bug Reports - Cursor - Community Forum
November 20, 2025 - Cursor IDE Describe the Bug Where does the bug appear (feature/product)? Cursor IDE Describe the Bug Request failed with status code 400: [{ “error”: { “code”: 400, “message”: “Invalid JSON payload received.