Skip to content

Seemingly Uncaused Random Stream Error #3875

Closed

Description

@Aznatkoiny

What version of Codex is running?

codex-cli 0.38.0

Which model were you using?

gpt codex-medium

What platform is your computer?

MacOS

What steps can reproduce the bug?

anything

What is the expected behavior?

response to query

What do you see instead?

⚠️ stream error: unexpected status 400 Bad Request: {
"error": {
"message": "Invalid 'input[181].content[0].image_url'. Expected
a base64-encoded data URL with an image MIME type (e.g. 'data:image/
png;base64,aW1nIGJ5dGVzIGhlcmU='), but got unsupported MIME type 'text/
markdown'.",
"type": "invalid_request_error",
"param": "input[181].content[0].image_url",
"code": "invalid_value"
}
}; retrying 5/5 in 3.481s…

Additional information

No response

Activity

  1. added
    bug
    on Sep 18, 2025
  2. big-dimple commented on Sep 19, 2025

    @big-dimple

    Same situation—I'm on Windows 10, whether using the terminal, Git Bash, or PowerShell.

  3. christianbradley commented on Sep 19, 2025

    @christianbradley

    Same issue. VS Code, Mac OS

  4. ErikDombi commented on Sep 20, 2025

    @ErikDombi

    Getting the same issue. Running WSL2 on Windows 11, Codex 0.39.0,

    ⚠️ stream error: unexpected status 400 Bad Request: {
      "error": {
        "message": "Invalid 'input[305].content[0].image_url'. Expected a base64-encoded data URL with an image MIME type (e.g. 'data:image/png;base64,aW1nIGJ5dGVzIGhlcmU='), but got unsupported MIME type 'text/markdown'.",
        "type": "invalid_request_error",
        "param": "input[305].content[0].image_url",
        "code": "invalid_value"
      }
    }; retrying 1/5 in 192ms…
    
    /status
    📂 Workspace
      • Path: /mnt/c/Users/Erik/Desktop/EssentialPayroll
      • Approval Mode: never
      • Sandbox: danger-full-access
      • AGENTS files: (none)
    
    👤 Account
      • Signed in with ChatGPT
      • Login: [Redacted]
      • Plan: Pro
    
    🧠 Model
      • Name: gpt-5-codex
      • Provider: OpenAI
      • Reasoning Effort: High
      • Reasoning Summaries: Auto
    
    💻 Client
      • CLI Version: 0.39.0
    
    📊 Token Usage
      • Session ID: 019967ad-99a0-7c92-a143-3255700cb0d0
      • Input: 210,098 (+ 5016960 cached)
      • Output: 21,911
      • Total: 232,009
    
  5. ErikDombi commented on Sep 20, 2025

    @ErikDombi

    Seems to be a dupe of #3050

  6. marekmajicek-sys commented on Sep 20, 2025

    @marekmajicek-sys

    Nechce se mě otevřít Chrome prohlížeč, je na něm nalepený štít ochrany a nevím jak ho vypnout.

  7. fsfra commented on Sep 24, 2025

    @fsfra

    Seems I have same issue:

    •	Extension: openai.chatgpt 0.4.14 (macOS, VS Code)
    •	only fails in the current chat thread; new chat works
    

    stream error: unexpected status 400 Bad Request:
    { "error": { "message": "Invalid 'input[...].content[...].image_url'. Expected a base64-encoded data URL …" } }

  8. adyuter commented on Sep 26, 2025

    @adyuter

    Me too.

    ⚠️ stream error: unexpected status 400 Bad Request: {"code":20015,"message":""messages" in request are illegal.","data":null}; retrying 1/5 in 199ms…

    🖐  unexpected status 400 Bad Request: {"code":20015,"message":""messages" in request are illegal.","data":null}

  9. fusioncid commented on Oct 11, 2025

    @fusioncid

    The same with me(macos+codex cli). I checked v0.28 is ok. Maybe v0.30 introduced this BUG.

  10. profitworx commented on Oct 13, 2025

    @profitworx

    This is an extension version issue. I rolled back to v3.1 and it works.

  11. tibo-openai commented on Oct 16, 2025

    @tibo-openai
    Collaborator

    Fixed in latest versions, please upgrade. Closing as resolved.

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