Skip to content

Unexpected status 503 Service Unavailable: Codex

Quick fix

When using v2ray, configure its routing to bypass LAN and mainland China domains, then access through CC Switch local routing again.

Error output
Unexpected status 503 Service Unavailable: Unknown error, url: http://127.0.0.1:15721/v1/responses

In closed issue #3673, Codex returned 503 when accessing DeepSeek through CC Switch local routing. The reporter confirmed that v2ray routing caused the problem; bypassing LAN and mainland China domains resolved it.

Open issue #6315 reports the same local `/v1/responses` 503 with NVIDIA NIM and custom models, but no fix has been confirmed. The same thread also contains an upstream HTTP 404 variant, so this case may not have the same root cause as v2ray.

  1. If you are using v2ray, open its routing settings.

  2. Configure v2ray routing to bypass LAN and mainland China domains.

  3. Run Codex again through CC Switch local routing and check whether the 503 disappears.

  4. If it still fails with NVIDIA NIM, check whether the error has changed to an upstream HTTP 404. No confirmed solution for this variant exists in the current issue.

ToolCodex
Version受影响:3.16.1 - 3.19.2
PlatformsmacOSWindows
Why does curl work with v2ray enabled while Codex returns 503?
The reporter in issue #3673 confirmed that v2ray routing settings caused the problem. Configuring the route to bypass LAN and mainland China domains resolved it.
Why can Codex still not connect after configuring the NVIDIA API and local routing?
Issue #6315 has no confirmed answer yet. The thread contains both 503 and upstream HTTP 404 errors; the latter also includes specific Provider and model information, so it may have a different cause.
What should I do if the model name appears as custom and cannot be switched?
Issue #6315 reports this behavior, but the current thread provides no confirmed fix.

This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.