[BUG] screen shot with no text give an error and freezes server connection session
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?
Invalid request
The request couldn't be completed.
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.1154.content.2.text: cache_control cannot be set for empty text blocks"},"request_id":"req_011CbvNv1eofZXdfMSVHa5Ki"}
I am so sick of this error when I paste a screenshot in and forget to put a prompt with it. Why can you not process a screenshot why does it have to have one letter or one word with it that's the dumbest thing ever. It's a bug it needs to be fixed
What Should Happen?
i paste in a screen shot and it works without me having to have text in the same submission
Error Messages/Logs
Steps to Reproduce
Invalid request
The request couldn't be completed.
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.1154.content.2.text: cache_control cannot be set for empty text blocks"},"request_id":"req_011CbvNv1eofZXdfMSVHa5Ki"}
|
I am so sick of this error when I paste a screenshot in and forget to put a prompt with it. Why can you not process a screenshot why does it have to have one letter or one word with it that's the dumbest thing ever. It's a bug it needs to be fixed
Claude Model
Other
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
v1.11847.5
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗