You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codex CLI 0.36 Only - stream error: unexpected status 404 Not Found #3786
changed the title [-]Codex CLI 0.36 Only - stream error: unexpected status 400 Bad Request[/-][+]Codex CLI 0.36 Only - stream error: unexpected status 404 Not Found[/+]on Sep 17, 2025
That “compatible” endpoint doesn’t implement the streaming route codex uses, so every request ended in 404 Not Found (error: “stream error: unexpected status 404 Not Found”).
Solution: comment out those lines and reload the shell. After that, codex worked again.
We've made a number of improvements here. Also recommend in the future to do codex logout and codex login, it can happen that the auth token doesn't get refreshed and this fixes it.
Activity
[-]Codex CLI 0.36 Only - stream error: unexpected status 400 Bad Request[/-][+]Codex CLI 0.36 Only - stream error: unexpected status 404 Not Found[/+]aitormendez commentedon Sep 18, 2025
Same bug here using vscode extension for macos
kingdomseed commentedon Sep 19, 2025
Started happening on version 0.39.0 for me--I'm on Azure. Deployment hasn't changed since version .20
aitormendez commentedon Sep 27, 2025
In my case, the cause was that I had
OPENAI_*variables exported in my~/.zshrc, in particular:OPENAI_BASE_URL=https://dashscope-intl.aliyuncs.com/compatible-mode/v1OPENAI_API_KEY=...OPENAI_MODEL=qwen3-coder-480b-a35b-instructThat “compatible” endpoint doesn’t implement the streaming route
codexuses, so every request ended in404 Not Found(error: “stream error: unexpected status 404 Not Found”).Solution: comment out those lines and reload the shell. After that,
codexworked again.nlp4whp commentedon Oct 13, 2025
For me this is because
wire_api = "responses"in myconfig.toml, I change it aswire_api = "chat"then it workstibo-openai commentedon Oct 16, 2025
We've made a number of improvements here. Also recommend in the future to do
codex logoutandcodex login, it can happen that the auth token doesn't get refreshed and this fixes it.