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

Resolved 💬 3 comments Opened Dec 9, 2025 by momo3331 Closed Dec 13, 2025

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_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗