I have my api key installed, path setup properly etc. Everything worked earlier. But every time I try to run a prompt, it works for about a minute and then says:
stream disconnected before completion: stream closed before response.completed
It worked earlier to set up the basic architecture of my project. The initial setup was about 300k tokens. After that I’ve seen this error repeatedly- nothing got done, and when I checked my stats suddenly it’s saying I’ve used 1m tokens today? I’m assuming that means it was still running my requests but wasn’t actually getting anything done?
I can say definitively that it’s not my internet cutting out either, because I’m using remote desktop to control the PC that I’m setting all of this up on with my laptop.
Is there just no resolution to this? I’m trying to use it in VS Code and getting the same result. I only signed up to test how things are going on in the Open AI corner and it’s not looking good on the coding side at this point.
Failed
stream error: stream disconnected before completion: stream closed before response.completed; retrying 1/5 in 191ms…
stream error: stream disconnected before completion: stream closed before response.completed; retrying 2/5 in 392ms…
stream error: stream disconnected before completion: stream closed before response.completed; retrying 3/5 in 729ms…
stream error: stream disconnected before completion: stream closed before response.completed; retrying 4/5 in 1.445s…
stream error: stream disconnected before completion: stream closed before response.completed; retrying 5/5 in 3.501s…
stream disconnected before completion: stream closed before response.completed
Pro plan here. stuck with stream disconnected issue for days now. checked usage limit and I have used 6% weekly usage, and 0% daily (5 hour left). WHY IS THIS STILL HAPPENING. Real work is getting blocked because of this issue.
My setup: using gpt5-codex high with VS code on Mac.
not sure if me using Sora app is taking away my usage limit in some unknown bucket. but something to ponder on. noticed issues as soon as I started using Sora.
also noticed that under rate limit option in VS code setup, I see “upgrade to Pro”. BUT I AM ALREADY PAYING FOR PRO.
Update: online codex connected with GitHub seems to work to at least ask questions. The UI in Visual Studio Code is still generating stream disconnected message. in the codex extension, I logged out and logged back in, so now it doesn’t at least show upgrade to Pro.
Edit: magically worked after I reset the working directory again in VS code.
i had the same on my work machine and the moment i disabled our zscaler it started to work immediately. always worked on my personal machine. recommend checking similar if you have endpoint security or VPNs