[BUG] Facing 400 Bad request few times
Resolved 💬 2 comments Opened Nov 29, 2025 by MananDesai54 Closed Nov 29, 2025
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.10.content.1: unexpected
tool_use_id found in tool_result blocks: toolu_01LoTJ1T77p1AVjPqt27jQXh. Each tool_result block must have a
corresponding tool_use block in the previous message."},"request_id":"req_011CVcYoidj2yxDMq8pVd4kn"}
What Should Happen?
Claude should work without errors
Error Messages/Logs
Steps to Reproduce
start Claude and ask anything which need to read and write files
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.55
Platform
Anthropic API
Operating System
Other Linux
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗