[BUG] API Error: 400 messages: text content blocks must be non-empty
Resolved 💬 3 comments Opened May 17, 2026 by sebubd10 Closed May 21, 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?
<img width="1292" height="917" alt="Image" src="https://github.com/user-attachments/assets/8a32628d-87df-4971-8476-2c7a99d6efc5" />
2.1.143 (Claude Code)
What Should Happen?
should reply
Error Messages/Logs
API Error: 400 messages: text content blocks must be non-empty
Steps to Reproduce
it's not taking any input
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.143
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Other
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗