Stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses)
Open 💬 20 comments Opened Mar 2, 2026 by joe5saia
💡 Likely answer: A maintainer (etraut-openai, contributor)
responded on this thread — see the highlighted reply below.
When using codex from the CLI I am frequently getting a "Reconnecting" message and codex fails to reconnect after 5 attempts. I see this message Stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses). The thread ID is 019caee5-4280-7290-a4ca-6456a7f599c4
20 Comments
From your logs, this looks like a basic network connectivity issue. We see these frequently with VPNs and proxies, but it might also just be flakiness with your connection.
Cool Thank you. For additional context, I use Tailscale and have a hardwired connection to my router. No other VPNs running other than Tailscale. I see this issue about once an hour or so, but it's unpredictable.
@etraut-openai My thread ID is 019caf1f-0131-7303-8f3c-5d92be272875, any idea what is going on? Not using a VPN.
@hhmoud-acerta, yours looks like a connectivity issue as well. You mentioned you are not using a VPN. How about a corporate proxy or firewall?
Hi @etraut-openai , looks like even I'm facing the same issue, both on cli and codex app. I dont use any VPN nor behind any corporate firewall or proxy. It works well for few hours and then doesn't at all for few.
Feedback id - 019caf97-3bf2-7361-ae77-16d4ba5ab89a
Hey @etraut-openai I am getting the exact same issue .
Here is the feedback ID : 019cb060-a88e-77b2-a9df-4bb9825f238d
What can you tell me about these sessions?
019cc2a1-ca49-7b11-b4b4-a1aeae73c146
019cc43c-7ad5-7fe0-b4c7-ffcd5454d2fe
■ stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses)
I started getting this at my office on Wednesday evening March 4, 2026 and regularly receiving them at my home since then Wednesday through Friday March 6, 2026.
<img width="640" height="1080" alt="Image" src="https://github.com/user-attachments/assets/324663b8-ce19-4908-97b1-4a30f712cf25" />
Somebody recommended that I log out & that would fix it.
Token exchange failed: error sending request for url (https://auth.openai.com/oauth/token)
I took the bait... desperate to get this working again and then I can't get logged back in!
Five separate times (& counting) without luck!
<img width="1499" height="175" alt="Image" src="https://github.com/user-attachments/assets/d17ee54a-ed4c-4d4d-9dfe-f999be8d1e57" />
Same to me.
I ran into the same issue on my Mac. After testing, I found that only Codex 5.3 in the CLI works; all models in the app, as well as the other models in the CLI, are unavailable for local tasks.
This is not a network issue. Changing model works. I'm pretty sure there is a hidden rate-limit for openclaw bots that open ai doesn't tell. Because of this, I can't use Codex at all.
It seems like I encountered the same situation, but changing model only works for a short while for me.
Same issue. Looks like throtteling:
stream disconnected before completion: Connection reset by peer (os error 54)
<img width="887" height="599" alt="Image" src="https://github.com/user-attachments/assets/a7089f65-528e-484a-9f22-442d7f0e3b90" />
<img width="934" height="468" alt="Image" src="https://github.com/user-attachments/assets/a7a50dcc-a115-454c-a539-0871dc1ea0bd" />
threadID:019d5287-e006-7c20-85a8-8ab299d53d7e
Same issue. threadID 019d5f83-d0c4-7ad0-a6cf-5b3b13cc287b
Super frustrating.
我每天也遇到这个问题
same question
i am having this issue with the CLI as well, it hard to tell exactly what is going on since i can't get any verbose output from the CLI, but it looks like its not even getting to the point of making any request to the server, since i am not seeing anything coming into my llama.cpp server from the codex cli session. and this is with a local model that i can use with the Zoo Code extension in vscode.
stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses)
我一直提示这样,使用的codex客户端昨天下午还好好的,但是突然到了晚上就不行了,一直reconnecting...然后得到上面那一串。。。到底改怎么解决