502 Bad Gateway
Resolved 💬 7 comments Opened Apr 3, 2026 by yzzqwq Closed Apr 3, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
reconnecting 5/5: unexpected status 502 Bad Gateway: Unknown error, url: http://127.0.0.1:8327/v1/responses
7 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
This error is often due to configuration problem with a VPN, proxy, or firewall.
There's not enough information for us to investigate the problem.
If you'd like to report a bug report, please fill out the information requested in the bug template. For bugs like this, we'll also need you to use
/feedbackto upload your logs and session details and include your thread ID in the bug report.I'm using the Windows version of Codex. There were no obvious error messages, and it worked fine before, but this error occurred today. The thread ID of the project I'm testing is: 019d5154-9248-77e0-8ecd-1b05d519bd71
My VPN proxy port is 7897, and I'm using rule-based proxy mode. Why is it switching to port 8327, and how can I fix it?
I deleted the .codex folder, reset the configuration, and that solved the problem.
I reinstalled Codex, but this error still occurs. unexpected status 502 Bad Gateway: Unknown error, url: http://127.0.0.1:8327/v1/responses
so it is fault about the .codex folder? Modify the contents of auth.json file ?