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_
10 Comments
Same situation—I'm on Windows 10, whether using the terminal, Git Bash, or PowerShell.
Same issue. VS Code, Mac OS
Getting the same issue. Running WSL2 on Windows 11, Codex 0.39.0,
Seems to be a dupe of #3050
Nechce se mě otevřít Chrome prohlížeč, je na něm nalepený štít ochrany a nevím jak ho vypnout.
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 …" } }
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}
The same with me(macos+codex cli). I checked v0.28 is ok. Maybe v0.30 introduced this BUG.
This is an extension version issue. I rolled back to v3.1 and it works.
Fixed in latest versions, please upgrade. Closing as resolved.