Error running remote compact task

Resolved 💬 7 comments Opened Feb 16, 2026 by danielraffel Closed May 14, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

Error running remote compact task: unexpected status 503 Service Unavailable: upstream connect error or disconnect/reset before headers. reset reason: connection termination, url:
https://chatgpt.com/backend-api/codex/responses/compact, cf-ray: 9cf0b0c7d89d3ad4-SJC, request id: e2002411-839e-918f-8e42-3e9e74300e59

Feedback shared

View original on GitHub ↗

7 Comments

github-actions[bot] contributor · 5 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #10823
  • #10385

Powered by Codex Action

sstklen · 4 months ago

This is an OpenAI server-side issue — the 503 with upstream connect error or disconnect/reset before headers means the backend handling /codex/responses/compact was temporarily unavailable (common causes: pod restart, deployment rollout, or momentary overload). There's nothing to fix on the client side.

What to do:

  • Wait 30–60 seconds and retry the compact task — these transient 503s typically self-resolve
  • If it persists across multiple retries, check https://status.openai.com for ongoing incidents
  • Your routing looks normal (cf-ray SJC POP = US-West Cloudflare edge), so this isn't a network/VPN issue on your end
_Disclosure: This analysis is from Confucius Debug, an AI-powered community KB for agent bugs. Please verify before applying._

---
<sub>🦞 Confucius Debug — community knowledge base for AI agent bugs. Free to search via MCP.</sub>

genry86 · 4 months ago

The same issue has been appeared
Error running remote compact task: unexpected status 503 Service Unavailable: no healthy upstream, url: https://chatgpt.com/backend-api/codex/responses/compact, cf-ray: 9d631c7a6e8a269b-PRG, request id: dc4ea147-ee76-4744-be53-574f75bd6a11

Kira-PH · 3 months ago

I got a 403 on this URL today. In #13784 there's mention of VPNs, but I'm not using a VPN. Is the 403 issue really a duplicate of this, since this is 503? One sounds like a transient error at the backend. The other sounds like an auth issue. And could the auth issue be related to changing IP addresses? I don't have control over what my ISP does with its public addresses, so what's the short-term fix? Do I just wait and try again?

Kira-PH · 3 months ago

Looks like this is a Cloudflare problem today. Check out Downdetector.

lasertiger · 2 months ago

019db277-a58f-7452-ae32-c486d4e3bc4a unfortunately no gpt-5.4 xhigh from Toronto are compacting. cloudflare issue (again??) something else?

wcameronmartin · 2 months ago

"Error running remote compact task: unexpected status 503 Service Unavailable upstream connect error or disconnect/reset before headers. reset reason: connection termination", url: https://chatgpt.com/backend-api/codex/responses/compact, cf-ray: 9f37baaf6848029d-ORD, request id: 7a239379-05f0-4e71-ad9a-5af531059dd8