Skip to content

stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses) #12207

Closed

Description

@bsheoran-chwy

What version of the Codex App are you using (From “About Codex” dialog)?

NA

What subscription do you have?

chatGPT enterprise

What platform is your computer?

macos

What issue are you seeing?

stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses)

What steps can reproduce the bug?

stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses)

What is the expected behavior?

stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses)

Additional information

stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses)

Activity

  1. Nadeesha-D-Shalom commented on Feb 19, 2026

    @Nadeesha-D-Shalom

    I’m investigating this behavior as well and wanted to share some structured observations.

    This error pattern:

    "stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses)"

    suggests the client streaming connection (likely SSE or HTTP/2) is being interrupted before the backend completes the response.

    Some possible technical causes worth checking:

    1. HTTP/2 stream reset (RST_STREAM) or idle timeout on macOS network stack
    2. Enterprise OAuth token refresh occurring mid-stream
    3. Gateway/proxy terminating long-lived streaming connections
    4. Backend timeout for long-running responses
    5. Network layer TLS renegotiation failure

    Questions that may help narrow it down:

    • Does this only occur for longer prompts?
    • Does it happen after the session has been idle?
    • Are there any HTTP status codes logged before disconnect?
    • Does disabling VPN/firewall change behavior?
    • Is it reproducible on another network?

    If this is a streaming timeout issue, implementing automatic stream reconnection or partial-response recovery might mitigate the user-facing failure.

    Happy to help test further if needed.

  2. etraut-openai commented on Feb 24, 2026

    @etraut-openai
    Contributor

    Thanks for reporting the problem, but there's not enough information for us to investigate further. If you see this again, please use the /feedback slash command to upload your logs and session details and include the thread ID in the bug report.

    This error can be caused by may different things, and without logs it's difficult to say which of those you were experiencing.

  3. wirthual commented on Feb 25, 2026

    @wirthual

    Using the vscode plugin I saw this error when using the API key to authenticate, using the login method worked for me.

  4. smbell1979 commented on Sep 10, 2026

    @smbell1979

    This has been happening to me with Astra and making it 100% unusable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions