codex icon indicating copy to clipboard operation
codex copied to clipboard

Seemingly Uncaused Random Stream Error

Open Aznatkoiny opened this issue 1 year ago • 10 comments

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

Aznatkoiny avatar Sep 18 '25 20:09 Aznatkoiny

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

big-dimple avatar Sep 19 '25 01:09 big-dimple

Same issue. VS Code, Mac OS

christianbradley avatar Sep 19 '25 02:09 christianbradley

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 avatar Sep 20 '25 15:09 ErikDombi

Seems to be a dupe of #3050

ErikDombi avatar Sep 20 '25 15:09 ErikDombi

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

marekmajicek-sys avatar Sep 20 '25 22:09 marekmajicek-sys

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

fsfra avatar Sep 24 '25 08:09 fsfra

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}

adyuter avatar Sep 26 '25 03:09 adyuter

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

fusioncid avatar Oct 11 '25 07:10 fusioncid

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

profitworx avatar Oct 13 '25 08:10 profitworx

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

tibo-openai avatar Oct 16 '25 20:10 tibo-openai