claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Errors out when trying to read an image file

Open momo3331 opened this issue 2 weeks ago • 1 comments

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

  1. Create a folder with an image inside
  2. 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

momo3331 avatar Dec 09 '25 11:12 momo3331

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/13396
  2. https://github.com/anthropics/claude-code/issues/12947
  3. 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

github-actions[bot] avatar Dec 09 '25 11:12 github-actions[bot]

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

github-actions[bot] avatar Dec 13 '25 09:12 github-actions[bot]

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.

github-actions[bot] avatar Dec 20 '25 14:12 github-actions[bot]