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_

View original on GitHub ↗

7 Comments

Soren8 · 11 months ago

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

ruph · 11 months ago

unset OPENAI_BASE_URL before running codex solved it for me.

Soren8 · 11 months ago

That fixed it for me too. In my case I had a sneaky .env in the parent directory that was getting loaded.

AliSayyah · 11 months ago

Yeah, that was the issue. thanks @ruph

fansilva1991 · 11 months ago
unset OPENAI_BASE_URL before running codex solved it for me.

Also worked for me! Thanks

jeaneigsi · 10 months ago

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

willwade · 10 months ago

NB: You need to completely close VSCode (at least on a Mac). You cant get away with just shutting and opening a new window.