[BUG] Once an invalid image format is pasted in, all subsequent prompts fail
Resolved 💬 2 comments Opened May 1, 2025 by prashanFOMO Closed May 24, 2025
Environment
- Platform (select one):
- [X] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 0.2.97 (Claude Code)
- Operating System: macOS 15.1
- Terminal: Warp
Bug Description
After pasting in a JPEG, all subsequent prompts yield:
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.6.content.0.image.source.base64.data: Image does not match the provided media type
image/png"}}
Steps to Reproduce
- Paste JPEG into Claude and press enter. (This should error out)
- Try any other prompt
- Still see error prompt. This is unrecoverable as far as I can tell
Expected Behavior
Invalid images are not included in subsequent calls
Actual Behavior
Every request after the invalid image errors out.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗