Attempting to read false image data creates an error loop [BUG]
Resolved 💬 2 comments Opened Aug 20, 2025 by t-e-lawrence Closed Aug 20, 2025
Environment
- Platform (select one):
- [ ] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [X] Other: Pro max 20X
- Claude CLI version:
- Operating System: gentoo linux
- Terminal: kitty
Bug Description
When claude tries to read an invalid image then it breaks the conversation and keeps returning the same error.
Steps to Reproduce
- ask claude to read a false image
- You get: API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"Could not process image"},"request_id":"req_011CSJoLQyc9fT2z2RRh2D1Q"}
- Now for any further request you will get the same response
Expected Behavior
Itd tell me that the image contains corrupted/false data and it cannot be loaded and we'd carry on with the convo
Actual Behavior
got stuck in above-described the cycle
Additional Context
here's the image i had claude attempt to read (it actually contains html):
!Image
the content of the .jpg file: https://gist.github.com/d0nker420/dc75a2f0bbd86ca8848bd66ddd8966cf
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗