Reference
Common Error Troubleshooting
Common integration mistakes and how to fix them.
401 Unauthorized
Symptom: authentication fails.
Cause: invalid or missing Encore API key.
Fix: verify the Authorization: Bearer YOUR_API_KEY header or your client API key field.
404 Not Found
Symptom: endpoint path is invalid.
Cause: wrong base URL or wrong endpoint path.
Fix: check whether you are using the standard gateway, /v1, or the Antigravity route.
Codex Still Calls OpenAI
Symptom: Codex traffic is still going to the official OpenAI endpoint.
Cause: openai_base_url was not changed.
Fix: set:
openai_base_url = "https://api.stillhappy.cn/v1"