unexpected status 503 Service Unavailable: CC Switch local proxy failed while ha...
错误信息
unexpected status 503 Service Unavailable: CC Switch local proxy failed while handling Codex endpoint /responses. Provider: ccgpai; model: gpt-5.5; upstream_status: HTTP 503; cause: Service temporarily unavailable, url: http://127.0.0.1:15721/v1/responses
AI 解决方案
原文:unexpected status 503 Service Unavailable: CC Switch local proxy failed while handling Codex endpoint /responses. Provider: ccgpai; model: gpt-5.5; upstream_status: HTTP 503; cause: Service temporarily unavailable, url: http://127.0.0.1:15721/v1/responses
译文:意外状态503服务不可用:CC Switch 本地代理在处理 Codex 端点 /responses 时出错。服务提供商:ccgpai;模型:gpt-5.5;上游状态:HTTP 503;原因:服务暂时不可用,网址:http://127.0.0.1:15721/v1/responses
🎯 原因分析
💡 解决方案
// 1. 等待几分钟后重试请求,服务可能已恢复
fetch('http://127.0.0.1:15721/v1/responses', {
method: 'POST',
headers: { 'Authorization': 'Bearer YOUR_API_KEY' },
body: JSON.stringify({
model: 'gpt-5.5',
input: { prompt: "Your request here" }
})
}).then(r => {
if (r.status === 503) {
// 2. 实现重试机制
return new Promise(resolve => setTimeout(resolve, 3000)).then(() => fetch(...));
}
return r.json();
});
// 3. 如持续失败,检查 CC Switch 代理配置及上游服务状态