codex icon indicating copy to clipboard operation
codex copied to clipboard

Unexpected 403 forbidden error

Open bvirlet opened this issue 10 months ago • 18 comments

What version of Codex is running?

0.84.0

What subscription do you have?

ChatGPT Pro

Which model were you using?

gpt-5.2

What platform is your computer?

Darwin 24.6.0 arm64 arm

What terminal emulator and version are you using (if applicable)?

iTerm2

What issue are you seeing?

unexpected status 403 Forbidden: , url: https://chatgpt.com/backend-api/codex/responses, request id: 9be4b1270fd6d08f-CDG

What steps can reproduce the bug?

Uploaded thread: 019bc133-83e8-7250-a68c-fcc45ca0ffd4

What is the expected behavior?

No error

Additional information

It was working yesterday. Nothing changed.

bvirlet avatar Jan 15 '26 10:01 bvirlet

Perhaps this will be helpful, I log in via my Google account.

The same problem here on the Plus subscription. Additionally, I cannot use chatgpt.com, I get a 403 error everywhere when I type anything. On top of that, it shows me as if I had a Pro subscription:

Image

growdelan avatar Jan 15 '26 15:01 growdelan

@bvirlet, sorry to hear you're having issues. Based on your description, this sounds like a general ChatGPT auth issue, not specific to Codex. I suppose you've already tried logging out and logging back in to refresh your auth token? If that doesn't work, I recommend contacting OpenAI customer support.

etraut-openai avatar Jan 15 '26 21:01 etraut-openai

this issue is happening especially with websockets

Schreezer avatar Mar 08 '26 14:03 Schreezer

Same here. Ran 'codex auth login', then restarted codex after the login. That eventually fixed it. Could be a coincidence.

unexpected status 403 Forbidden: { "error": { "message": null, "type": null, "code": "invalid_workspace_selected", "param": null }, "status": 403 }, url: https://chatgpt.com/backend-api/codex/responses, cf-ray: ...92-FRA, request id: ...295

attikov avatar Mar 11 '26 22:03 attikov

Facing a similar issue with Codex Mac app:

Reconnecting... 1/5 Reconnecting... 2/5 Reconnecting... 3/5 Reconnecting... 4/5 Reconnecting... 5/5 unexpected status 403 Forbidden: {"detail":{"code":"invalid_workspace_selected"}}, url: https://chatgpt.com/backend-api/codex/responses, cf-ray: 9e0fd77e, request id: 33fe3f26-, auth error: 403, auth error code: invalid_workspace_selected

eba8 avatar Mar 23 '26 19:03 eba8

Same here, fixed by @attikov solution. Run "codex auth login" in your Terminal, it will open a Browser to login again, then back to normal. @eba8 You can have a try.

willbin avatar Mar 26 '26 07:03 willbin

I just found this issue too and it went away by turning off my VPN.

cniggeler avatar Apr 20 '26 14:04 cniggeler

cool, next time we will turn off your VPN

attikov avatar Apr 20 '26 14:04 attikov

"""Route Error (500 ): { "isTrusted": true }""" I got this error next after trying to relogin

hthuku95 avatar Apr 20 '26 14:04 hthuku95

I just found this issue too and it went away by turning off my VPN.

turn off vpn and turn on vpn ,it is ok! thks

liupeng176 avatar Apr 20 '26 14:04 liupeng176

I use codex in opencode inside windows VM and got the same issue! i do not use vpn. hmm. Tried auth serveral times but still errors.

kunkka19xx avatar Apr 20 '26 14:04 kunkka19xx

"""Route Error (500 ): { "isTrusted": true }""" I got this error next after trying to relogin

https://status.openai.com/

attikov avatar Apr 20 '26 14:04 attikov

get same error.

skyonedot avatar Apr 20 '26 15:04 skyonedot

Same here. With or without VPN, I see the same error

temktoznaet avatar Apr 20 '26 15:04 temktoznaet

It looks like the service on the route - https://chatgpt.com/backend-api/codex/responses - has crashed and is still down!

VitaliiBlack avatar Apr 20 '26 15:04 VitaliiBlack

Same

dragonbaba avatar Apr 20 '26 15:04 dragonbaba

the same for windows. client crashed?

sunrisever avatar Apr 20 '26 15:04 sunrisever

It's down folks..

ChatGPT
Codex
Users unable to load ChatGPT and Codex

We are investigating the issue for the listed services.
Investigating·Ongoing for 30 minutes
·Affects ChatGPT, Codex`

electricmessiah avatar Apr 20 '26 15:04 electricmessiah