unexpected status 404 Not Found
Resolved 💬 7 comments Opened Aug 18, 2025 by AliSayyah Closed Aug 22, 2025
What version of Codex is running?
0.22.0
Which model were you using?
gpt-5
What platform is your computer?
Linux 6.12.10-76061203-generic x86_64 x86_64
What steps can reproduce the bug?
$ codex
user: hi
codex: 🖐 unexpected status 404 Not Found: {"message":"Route POST:/api/v1/684570d09bf5b9*****/responses not found","error":"Not Found","statusCode":404}
What is the expected behavior?
expect a valid response
What do you see instead?
🖐 unexpected status 404 Not Found: {"message":"Route POST:/api/v1/684570d09bf5b9*****/responses not found","error":"Not Found","statusCode":404}
Additional information
_No response_
7 Comments
Same problem, regardless of model selection. Happened on v0.20, updated to v0.23.0 and it still happens. Codex is completely broken for me due to this. Also on linux
unset OPENAI_BASE_URL before running codex solved it for me.
That fixed it for me too. In my case I had a sneaky .env in the parent directory that was getting loaded.
Yeah, that was the issue. thanks @ruph
Also worked for me! Thanks
unset OPENAI_BASE_URL before running codex solved it for me worked for me. First check your bashrc on linux or environment variable if you are on window and remove any reference. Reload your IDE or terminal mabe, turn off your computer
NB: You need to completely close VSCode (at least on a Mac). You cant get away with just shutting and opening a new window.