codex icon indicating copy to clipboard operation
codex copied to clipboard

unexpected status 404 Not Found

Open AliSayyah opened this issue 1 year ago • 7 comments

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

AliSayyah avatar Aug 18 '25 16:08 AliSayyah

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

Soren8 avatar Aug 20 '25 14:08 Soren8

unset OPENAI_BASE_URL before running codex solved it for me.

ruph avatar Aug 21 '25 20:08 ruph

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

Soren8 avatar Aug 22 '25 01:08 Soren8

Yeah, that was the issue. thanks @ruph

AliSayyah avatar Aug 22 '25 17:08 AliSayyah

unset OPENAI_BASE_URL before running codex solved it for me.

Also worked for me! Thanks

fansilva1991 avatar Aug 22 '25 18:08 fansilva1991

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

jeaneigsi avatar Aug 29 '25 14:08 jeaneigsi

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

willwade avatar Sep 17 '25 09:09 willwade