[BUG] Errors out when trying to read an image file
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 claude code tries to read an image it response with an error and continuing the chat is not possible anymore after that.
What Should Happen?
Well, it should not responde with an error obviously.
Error Messages/Logs
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.11.content.1.image.source.base64.data: Image does not match the provided media type image/png"},"request_id":"req_011CVw3fgH4kxQSRCU7rTNkC"}
Steps to Reproduce
- Create a folder with an image inside
- Tell claude to read the image (What do you see in this image: "path to image")
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
No response
Claude Code Version
2.0.62 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
WSL (Windows Subsystem for Linux)
Additional Information
No response
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/13396
- https://github.com/anthropics/claude-code/issues/12947
- https://github.com/anthropics/claude-code/issues/11975
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and 👍 the existing issue instead
- To prevent auto-closure, add a comment or 👎 this comment
🤖 Generated with Claude Code
This issue has been automatically closed as a duplicate of #13396.
If this is incorrect, please re-open this issue or create a new one.
🤖 Generated with Claude Code
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.