codex icon indicating copy to clipboard operation
codex copied to clipboard

error sending request for url (https://api.openai.com/v1/responses)

Open buildinpublichub opened this issue 1 year ago • 11 comments

⚠️ stream error: error sending request for url (https://api.openai.com/v1/responses); retrying 1/5 in 212ms…

⚠️ stream error: error sending request for url (https://api.openai.com/v1/responses); retrying 2/5 in 368ms…

⚠️ stream error: error sending request for url (https://api.openai.com/v1/responses); retrying 3/5 in 873ms…

⚠️ stream error: error sending request for url (https://api.openai.com/v1/responses); retrying 4/5 in 1.705s…

⚠️ stream error: error sending request for url (https://api.openai.com/v1/responses); retrying 5/5 in 3.33s…

■ error sending request for url (https://api.openai.com/v1/responses)

buildinpublichub avatar Oct 07 '25 13:10 buildinpublichub

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

  • #4221

Powered by Codex Action

github-actions[bot] avatar Oct 07 '25 13:10 github-actions[bot]

have you solve your problem ? I came across the same one. I have tried different version, but it doesn't work.

efengshan avatar Oct 15 '25 01:10 efengshan

I guess it's a network proxy problem. Last week I solve it by change my proxy point. But this week I can't fix it again

Lillian-Yo avatar Oct 16 '25 02:10 Lillian-Yo

export ALL_PROXY="http://127.0.0.1:7890" is ok

Lillian-Yo avatar Oct 16 '25 02:10 Lillian-Yo

export ALL_PROXY="http://127.0.0.1:7890" is ok

that works for cli, but not for vscode codex entension with ssh connection in linux server.

efengshan avatar Oct 16 '25 02:10 efengshan

you can try cursor`s codex extension.

TIMLONGG avatar Oct 25 '25 10:10 TIMLONGG

did anyone resolve this?

khaotickb avatar Dec 16 '25 11:12 khaotickb

I have experienced that simply switching versions will do.

newbie-jiang avatar Dec 16 '25 17:12 newbie-jiang

问题一般是 VSCode 从 GUI 启动时没有继承代理/环境变量。从能用 codex 的终端输入code . 启动vscode(先在终端中先运行一下codex,然后退出codex,最后再启动vscode),如果新打开的vscode里能用codex插件,则就是这个问题!想要根治这个问题有两大方法:①在vscode里配置系统代理;②把代理/Key写入到“系统级环境”,使得GUI启动vscode也可以走代理。

GXL19940905 avatar Dec 20 '25 07:12 GXL19940905

When connecting to a Linux server via SSH, the Codex CLI (Version 26.5513.21555)in VS Code, Positron, and similar IDEs keeps showing errors. Reconnecting... 2/5 Reconnecting... 3/5 Reconnecting... 4/5 Reconnecting... 5/5 Reconnecting... 1/5 Reconnecting... 2/5 Reconnecting... 3/5 Reconnecting... 4/5 Reconnecting... 5/5 unexpected status 403 Forbidden: