Skip to content

Error sending request for url (https://chatgpt.com/backend-api/codex/responses) after macbook sleeps #3355

Open

Description

@hmottestad

What version of Codex is running?

codex-cli 0.30.0

Which model were you using?

gpt-5 high

What platform is your computer?

Darwin 24.4.0 arm64 arm

What steps can reproduce the bug?

Get codex working on a task that requires more than 30 seconds to finish. Close the lid of the Macbook Pro and take the laptop with you so that it looses connection to the wifi.

What is the expected behavior?

Expected behavior is that Codex detects that the Macbook Pro is attempting to sleep and waits to retry until the macbook is awake and the network is re-connected.

Alternatively, ask the user if it should retry.

What do you see instead?


⚠️ stream error: error sending request for url (https://chatgpt.com/backend-api/codex/responses); retrying 1/5 in 182ms…

⚠️ stream error: error sending request for url (https://chatgpt.com/backend-api/codex/responses); retrying 2/5 in 374ms…

⚠️ stream error: error sending request for url (https://chatgpt.com/backend-api/codex/responses); retrying 3/5 in 863ms…

⚠️ stream error: error sending request for url (https://chatgpt.com/backend-api/codex/responses); retrying 4/5 in 1.691s…

⚠️ stream error: error sending request for url (https://chatgpt.com/backend-api/codex/responses); retrying 5/5 in 3.471s…

🖐  error sending request for url (https://chatgpt.com/backend-api/codex/responses)

Additional information

This happens when the lid of the Macbook is closed and the laptop promptly moved out of range of the wifi connection.

Activity

  1. barbarianlegend commented on Sep 9, 2025

    @barbarianlegend

    I'm seeing this as well with 0.31.0 and it just happened spontaneously without any kind of observed network interruption.

  2. rr- commented on Sep 10, 2025

    @rr-

    Related: #1243
    For me this happens every single time.

  3. archananarayanan commented on Sep 16, 2025

    @archananarayanan

    This happens in the new codex vscode extension. Any resolutions yet ?

  4. AmirTlinov commented on Sep 16, 2025

    @AmirTlinov

    It's possible that some versions of codex-cli for Windows had issues related to using "python3" vs "python" in the PATH, which could cause similar execution errors, especially on systems where only "python.exe" is present.

  5. myudak commented on Sep 17, 2025

    @myudak

    Have the exact problem but my device is termux android

  6. oopupdeep commented on Sep 18, 2025

    @oopupdeep

    same

  7. kevit-ashish-chandpa commented on Oct 7, 2025

    @kevit-ashish-chandpa

    Set dns 8.8.8.8. If you’re still facing issues, please ensure that port 443 is open on your system.
    (#3409 (comment))

  8. Lillian-Yo commented on Oct 9, 2025

    @Lillian-Yo

    I have the same bug but curl -v https://chatgpt.com is ok

  9. ysun commented on Oct 9, 2025

    @ysun

    I have the same bug but curl -v https://chatgpt.com is ok

    Exactly the same issue.

  10. YuchengWang commented on Oct 14, 2025

    @YuchengWang

    I just installed Python 3.13. the OS is Ubuntu 25.04, and the error occurs, how to avoid the error? I'm sure curl -v https://chatgpt.com has no error

  11. TIMLONGG commented on Oct 25, 2025

    @TIMLONGG

    same. I suspected it was an issue with VSCode. After trying Cursor's Codex extension, my problem was successfully resolved.

  12. zbsdsb commented on Nov 19, 2025

    @zbsdsb

    same. I suspected it was an issue with VSCode. After trying Cursor's Codex extension, my problem was successfully resolved.一样。我怀疑是 VSCode 的问题。试用 Cursor 的 Codex 扩展后,问题就解决了。

    但是我在 Cursor 的 Codex 扩展中还是有这个报错,其运行在WSL环境时,但是在终端中却没有影响

  13. 35 remaining items

  14. lz19149102003-sketch commented on Jul 29, 2026

    @lz19149102003-sketch

    stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses)这个问题怎么解决

  15. iaghp commented on Jul 31, 2026

    @iaghp

    Error still persists, can be due to server overload. I've been dealing with the issue all day.
    Restating the codex app seems to resolve the issue temporarily.

  16. WolleKr commented on Aug 5, 2026

    @WolleKr

    same here... running on a windows machine, and doesnt matter if I start codex as admin or normal process...
    from time to time its getting the error:
    stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses)
    thats really annoying...

  17. MacMiggity commented on Aug 6, 2026

    @MacMiggity

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

    › resume

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

  18. vab2048 commented on Aug 25, 2026

    @vab2048

    got this issue again. I am on Windows in the UK. This makes the app unusable and extremely annoying since when it works it is really good.

    Image
  19. bsmayer commented on Aug 26, 2026

    @bsmayer

    I also get this error often. Forking the conversation works for me sometimes. Starting a new chat with fresh context also works, but the original sessions keep pretty much unusable.

  20. heaven-hm commented on Sep 3, 2026

    @heaven-hm

    ■ unexpected status 404 Not Found: Unknown error, url: https://chatgpt.com/backend-api/codex/responses, cf-ray: a3559c4a1e0533b4-DEL

    using codex with cli on MacOS.

  21. filipg007 commented on Sep 3, 2026

    @filipg007

    website chatgpt.com is not reachable....down

  22. vovan-T commented on Sep 3, 2026

    @vovan-T

    Update app codex did not help

  23. punsnprotons commented on Sep 4, 2026

    @punsnprotons

    https://chatgpt.com/backend-api/codex/responses, cf-ray: a35b58903f1e44bb-SIN, request id: []
    Jay Sean should make another "Down" rendition on ChatGPT

  24. paskal007r commented on Sep 18, 2026

    @paskal007r

    one year in, still happening

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

    meanwhile https://status.openai.com/ doesn't even report degraded service. No vpns, same client that worked just fine hours earlier.

  25. shaheershakir commented on Sep 18, 2026

    @shaheershakir

    got this issue again. I am on Windows in the UK. This makes the app unusable and extremely annoying since when it works it is really good.

    Image

    still happening on windows codex app, cli, vscode codex extension, tried reinstalling any known fix?

  26. Drag-NDrop commented on Oct 3, 2026

    @Drag-NDrop

    This is the main reason that i have begun to consider giving Claude a shot. I've always used OpenAI models. But this is just really not cool. I pay well over 100$ per month to OpenAI - but what is it worth, when Astra just cuts off midflight, and refuse to wake back up. Not worth my tokens, not worth my time, not worth my money.

    I experience this is plain normal project/work chats in the web interface.

  27. pingads11 commented on Oct 10, 2026

    @pingads11

    Same situation here in Lativa. Its been 2 days since I am working on 1 task. I have claude and cursor but they are working totally fine its just CODEX issue. Also openai support doesnt respond at all.

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

    bugSomething isn't workingconnectivityIssues involving networking or endpoint connectivity problems (disconnections)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions