[BUG] Invalid request The request couldn't be completed — open Details for more. View details API Error: 400 messages: text content blocks must be non-empty
Resolved 💬 2 comments Opened May 23, 2026 by YachtingsBest Closed Jun 29, 2026
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?
When i add an image and text after being in a session for a while i start to get these error messages with increasing regularity unitl i start a new session. Non of my text blocks were blank
"Invalid request
The request couldn't be completed — open Details for more.
View details
API Error: 400 messages: text content blocks must be non-empty"
What Should Happen?
Claude should just keep working
Error Messages/Logs
Invalid request
The request couldn't be completed — open Details for more.
View details
API Error: 400 messages: text content blocks must be non-empty
Steps to Reproduce
Use claude code web for long enough until the errors start to appear
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
Web
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Other
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗