Seemingly Uncaused Random Stream Error
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
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,
⚠️ 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
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.