`codex app-server` fails with 503 while `codex exec` works
Resolved 💬 3 comments Opened Mar 9, 2026 by sorryhyun Closed Mar 10, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of the Codex App are you using (From “About Codex” dialog)?
0.112.0
What subscription do you have?
plus
What platform is your computer?
WSL2
What issue are you seeing?
codex app-server fails to connect to the upstream OpenAI API with a 503 error, while codex exec works normally.
What steps can reproduce the bug?
codex exec — works
$ codex exec 'say hi'
OpenAI Codex v0.112.0 (research preview)
model: gpt-5.4
...
codex
hi
codex app-server — fails
The app-server spawns and accepts local WebSocket connections from clients. The JSON-RPC initialize handshake, thread/start, and turn/start all succeed. However, when the app-server tries to connect upstream to OpenAI's backend, it fails:
[codex app-server stderr] 2026-03-09T06:25:33.432133Z ERROR codex_api::endpoint::responses_websocket:
failed to connect to websocket: HTTP error: 503 Service Unavailable,
url: wss://chatgpt.com/backend-api/codex/responses
The user message is received and echoed back (item/started, item/completed for userMessage), but no assistant response is generated because the upstream connection fails.
Analysis
codex execandcodex app-serverappear to use different upstream endpoints.execpresumably uses the REST API (which is working), whileapp-serveruses a WebSocket endpoint atwss://chatgpt.com/backend-api/codex/responses(which returns 503).- The local WebSocket transport between the client and app-server is fine — the issue is entirely on the app-server → OpenAI upstream leg.
- This is likely an OpenAI-side outage or a deprecated endpoint.
What is the expected behavior?
codex app-server should connect to the upstream API and stream assistant responses back to the client, the same way codex exec does.
Additional information
_No response_
3 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Both
codex execandcodex app-serversupport web sockets. They use the same underlying mechanism for connectivity and auth. Are you using the ChatGPT auth method for both?The
codex app-serveris what we use for the IDE Extension and Codex app, and we know this is working in this cases.@etraut-openai I think it was a connection issue. Closing