Skip to content

Endless loop: The image date you provided does not represent a valid image #3097

Closed as duplicate

Description

@petergpt

What version of Codex is running?

0.27.0

Which model were you using?

gpt-5

What platform is your computer?

darwin 24.6.0 arm64 arm

What steps can reproduce the bug?

I am working with a bit of csv data, python to analyse and a react visualisation of this data, at some point codex says:

I’ll render an SVG preview so you can see it here, and share how to open the HTML locally.

_
✓ ⌨️ python3 trend_viz/scripts/render_svg.py

then it goes into an endless loop of

⚠  stream error: unexpected status 400 Bad Request: {
"error": {
"message": "The image data you provided does not represent a valid image. Please check your input and try again with one of the supported image formats: ['image/jpeg', 'image/png', 'image/gif',
'image/webp'].",
"type": "invalid_request_error",
"param": "input",
"code": "invalid_value"
}
}; retrying 1/5 in 204ms…

it does not matter what I say after that, it always repeats with the same error, even if no image is involved in the following message

Image

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

Activity

  1. added
    bug
    on Sep 3, 2025
  2. Kivu011 commented on Sep 19, 2025

    @Kivu011

    Same problem here. I also uploaded SVG and broke it... And now it just runs into endless loop.... I can't stop it no matter what I try...

  3. alexzanco commented on Sep 26, 2025

    @alexzanco

    Same problem. No matter what prompt keeps throwing error

  4. AndriiUkraine commented on Sep 27, 2025

    @AndriiUkraine

    same problem :
    stream error: unexpected status 400 Bad Request: { "error": { "message": "The image data you provided does not represent a valid image. Please check your input and try again with one of the supported image formats: ['image/jpeg', 'image/png', 'image/gif', 'image/webp'].", "type": "invalid_request_error", "param": "input", "code": "invalid_value" } }; retrying 3/5 in 750ms…

  5. kevinchwong commented on Oct 6, 2025

    @kevinchwong

    Dont see this issue, when working the codebase with claude code.

  6. nguyenbs commented on Oct 16, 2025

    @nguyenbs

    Same problem here. An endless loop of errors

  7. Dalanir commented on Oct 20, 2025

    @Dalanir

    Same here!

  8. etraut-openai commented on Oct 29, 2025

    @etraut-openai
    Contributor

    Thanks for reporting the problem. This appears to be the same issue as #3050. I'm going to close this one to reduce duplication.

  9. Than-yel commented on Nov 15, 2025

    @Than-yel

    unexpected status 400 Bad Request: {
    "error": {
    "message": "The image data you provided does not represent a valid image..."
    "param": "input",
    "code": "invalid_value"
    }
    }

    Exactly the same problem i have with codex

  10. carloscerlira commented on Sep 9, 2026

    @carloscerlira

    Thanks for reporting the problem. This appears to be the same issue as #3050. I'm going to close this one to reduce duplication.

    not same

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions