Skip to content

[BUG] Repeated "Image couldn't be processed" API errors consuming usage limit in Claude Code #62466

Open

Description

@3ct0s

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Description

Claude Code repeatedly triggered image processing errors that consumed my entire usage limit without producing useful output. After an initial failed attempt to process a base64-encoded image, every subsequent request in the conversation triggered the same error.

Error Pattern

The following error appeared on every tool invocation after the initial failure:

An image couldn't be read. Rewind to remove it and try a different format.
API Error: an image in the conversation could not be processed and was removed. Re-read the file with a different approach if you still need it.
Tool calls that triggered the error:

  • Read bg66xakij.output
  • ToolSearch
  • Generic tool usage
  • "Verify image then send all preview emails"
  • "Follow redirect to confirm 200"

Actual Behavior

The error persisted across all subsequent requests, consuming my entire 5-hour usage limit without producing useful work.

Environment

  • Product: Claude Code Desktop MacOS
  • Conversation ID: 215474449845617
  • Date: May 26, 2026
  • MacOS Version 26.3.1 (a) (25D771280a) Claude desktop version: "May 22, 2026 1.8555.1"

Impact

This bug consumed my entire usage allocation, preventing me from completing my work.

What Should Happen?

Expected Behavior

After an image processing error, Claude Code should either:

  • Stop attempting to process the problematic image
  • Allow the conversation to continue without repeatedly triggering the same error
  • Not consume usage credits for repeated error states

Error Messages/Logs

Image couldn't be processed
An image couldn't be read. Rewind to remove it and try a different format.
View details
API Error: an image in the conversation could not be processed and was removed. Re-read the file with a different approach if you still need it.

Steps to Reproduce

Steps to Reproduce

  1. Asked Claude Code to append an image to an email template
  2. Claude Code attempted to read base64-encoded image from /tmp/barberas-email/logo-base64.txt
  3. Initial commands executed:
    • cat /tmp/barberas-email/logo-base64.txt | wc -c (returned 2098)
    • cat /tmp/barberas-email/logo-base64.txt | head -c 100 && echo "..."
  4. Received error: "API Error: an image in the conversation could not be processed and was removed"
  5. Every subsequent request triggered the same error repeatedly

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.140 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

Image Image

Activity

  1. mmffdev commented on Jun 1, 2026

    @mmffdev

    Same error here but it says:

    API Error: an image in the conversation could not be processed and was removed. Re-read the file with a different approach if you still need it.

    keeps repeating through the VS Code Extension on Opus 4.8

  2. Galven commented on Jun 2, 2026

    @Galven

    +1

  3. CloudyChai commented on Jun 2, 2026

    @CloudyChai

    Was happening today. Burned through my 5 hour within 2 prompts..

  4. popsandthefamily commented on Jun 2, 2026

    @popsandthefamily

    Also happened to me in Claude for VS Code, I wiped my 5 hours out in an hour flat somehow.

  5. jaydeep-devx commented on Jun 3, 2026

    @jaydeep-devx

    yes same with me

  6. jaydeep-devx commented on Jun 3, 2026

    @jaydeep-devx

    just one prompt with claude this and my limit got reached

  7. nazarrd commented on Jun 3, 2026

    @nazarrd

    Same with me, got multiple similar error and wiped my 5 hours that was just reset. I was on max 5x plan.

  8. azzapoys commented on Jun 3, 2026

    @azzapoys

    Same here, usage went in 2 mins after one prompt after resetting, on the pro licence also.

  9. hossein-webdev commented on Jun 3, 2026

    @hossein-webdev

    I'm getting the same error here:

    "API Error: an image in the conversation could not be processed and was removed. Re-read the file with a different approach if you still need it."

    The issue also consumed my MAax plan usage in less than 5 minutes. I NEED MY USAGE RESTORED !!!!

    Because of this error, I couldn't finish my project on time and now I have to wait 5 hours before I can continue.

  10. beztebya666 commented on Jun 4, 2026

    @beztebya666
  11. beztebya666 commented on Jun 4, 2026

    @beztebya666
    Image
  12. MichaelUray commented on Jun 4, 2026

    @MichaelUray

    Same here:

    API Error: an image in the conversation could not be processed and was removed. Re-read the file with a different approach if you still need it.
    
    API Error: Server is temporarily limiting requests (not your usage limit) · Rate limited
    
  13. ThalionA commented on Jun 5, 2026

    @ThalionA

    +1. It's been happening since yesterday continuously. It's unusable!

  14. ELMarso-ux commented on Jun 5, 2026

    @ELMarso-ux

    I’ve encountered the same issue. Has any solution been found yet? Is everyone still experiencing this problem?

  15. 7 remaining items

  16. lukesoftware commented on Jun 10, 2026

    @lukesoftware

    I think the error is with QR code images

  17. arunchris commented on Jun 11, 2026

    @arunchris

    This bug is super annoying and drains the 5 hour limit tokens in a few prompts

    Image
  18. LeeStevens318 commented on Jun 11, 2026

    @LeeStevens318

    Wasted my whole 5 hour window

    Image
  19. Fabian-Wacker-Starke commented on Jun 12, 2026

    @Fabian-Wacker-Starke

    Since today i have the same problem, 5 hour session limit is reached in minutes.

  20. tkdgusqkr-g commented on Jun 16, 2026

    @tkdgusqkr-g

    I have the same problem, 5 hour session limit is reached in minutes.

    Image
  21. bedrich-schindler commented on Jun 27, 2026

    @bedrich-schindler

    It's still happening (Claude Code v2.1.195, MacOS). It burnt about 50% of my 5h window (8% of weekly limits) of Max 5x within 5 minutes

  22. raveneal commented on Jul 22, 2026

    @raveneal

    This was happening to me. I compacted the window and it stopped. Seemed it was reprocessing image heavy window on each turn. compact solved and didn't repeat.

  23. AuraCodez commented on Aug 4, 2026

    @AuraCodez

    It is eating up my limits quick I guess im going to compact it

  24. AuraCodez commented on Aug 5, 2026

    @AuraCodez

    HOW exactly do we fix this.

  25. Boh1 commented on Aug 13, 2026

    @Boh1

    Confirming this on Claude Code Version: 2.1.170 / OS: Windows 11.

    The usage-burn impact is severe enough that I want to add hard numbers, because I think they understate how bad the loop is.

    Impact: This consumed ~32% of my 5-hour usage window in about 3 minutes. The error isn't a one-time failure you dismiss — it recurs on every subsequent turn, and each turn re-sends the full conversation context (including the un-removed image) and gets billed for it. So a single bad image effectively taxes you for a runaway retry loop you can't see or stop.

    Trigger: capturing a screenshot of a document (a PDF form) for analysis — the image was evidently too large or malformed to process.

    The two things that make this a design bug, not just an error:

    1. The message says the image "was removed" — it isn't. It's dropped from the current turn's processing but stays in conversation history, which is the entire reason it recurs. Every following request re-sends it, re-fails, and re-bills. The message describes an action the system didn't actually perform.

    2. There's no circuit-breaker. After N identical image-processing failures, nothing throttles, evicts the image, or halts. It just loops and keeps consuming the usage window. A simple "we've failed on this same image 3× — stopping and evicting it" would prevent the entire problem.

    Also: the suggested remedy "re-read the file if you still need it" is actively harmful when the file is the bad image — it re-injects the exact payload that's breaking the session.

    Workaround (confirmed): the only recovery was to let in-flight work finish, manually write a continuation prompt to preserve state, then /clear the session. That's a painful manual rescue while being billed for the loop the whole time.

    Related Issue: This is the same failure signature as #66815 (reported ~60% of usage burned across 19 consecutive retries, each re-sending the full context) - that issue was closed as not planned, but the token-burn impact is real and reproducible, so I'd push back on that disposition. At minimum this needs a retry cap / circuit-breaker and a corrected error message.

  26. psouza4 commented on Aug 25, 2026

    @psouza4

    Still happening so many months later. I'm surprised such a bug continues to exist in a polished product.

  27. nelsonestrada5 commented on Aug 27, 2026

    @nelsonestrada5

    Can confirm this is happening to me today.

    Claude 1.37937.3 (28dcf5) // macOS Version 26.6.2

  28. HadiSDev commented on Sep 3, 2026

    @HadiSDev

    This started happening now. Super annoying

  29. itsCynic commented on Sep 15, 2026

    @itsCynic

    happening to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions