[BUG]

Resolved 💬 3 comments Opened Sep 29, 2025 by isoldeba Closed Sep 29, 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?

Title: Claude Code stuck in infinite loop with image format error - terminal becomes unresponsive

Description:
Claude Code keeps throwing this error repeatedly and my terminal becomes completely unresponsive:

API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.11.content.15.image.source.base64.data: Image does not match the provided media type image/jpeg"}

The error repeats over and over, I cannot type anything, and I have to force quit. Restarting doesn't help - it immediately starts the error loop again.

OS: [YOUR OS HERE - Mac/Windows/Linux]
Claude Code version: [if you know it]
Terminal: [what terminal you use]

This makes Claude Code completely unusable.

What Should Happen?

i have not idea
mabye find the photos i asked it o

Error Messages/Logs

⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.11.content.15.image.source.base64.data: 
    Image does not match the provided media type image/jpeg"},"request_id":"req_011CTd4uJW8RSAH8U4FwGoBT"}

> her we go again.. 
  ⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.11.content.15.image.source.base64.data: 
    Image does not match the provided media type image/jpeg"},"request_id":"req_011CTd4v5XoMpaHtsuySbNhN"}

> ugh 
  ⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.11.content.15.image.source.base64.data: 
    Image does not match the provided media type image/jpeg"},"request_id":"req_011CTd4zwjNtYH7QEKA22Uno"}
n

Steps to Reproduce

no idea

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

latest

Claude Code Version

4.5

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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