Seemingly Uncaused Random Stream Error

Resolved 💬 10 comments Opened Sep 18, 2025 by Aznatkoiny Closed Oct 16, 2025
💡 Likely answer: A maintainer (tibo-openai, collaborator) responded on this thread — see the highlighted reply below.

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_

View original on GitHub ↗

10 Comments

big-dimple · 10 months ago

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

christianbradley · 10 months ago

Same issue. VS Code, Mac OS

ErikDombi · 10 months ago

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
ErikDombi · 10 months ago

Seems to be a dupe of #3050

marekmajicek-sys · 10 months ago

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

fsfra · 9 months ago

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 …" } }

adyuter · 9 months ago

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}

fusioncid · 9 months ago

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

profitworx · 9 months ago

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

tibo-openai collaborator · 9 months ago

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