Request timed out: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7ff994557160>, 'Connection to api.openai.com tim… #688

Closed
opened 2026-02-21 17:28:02 -05:00 by yindo · 7 comments
Owner

Originally created by @Hu-Pei on GitHub (Nov 12, 2023).

Provide a description of the help you need

本地部署,设置了代理为什么还是会报这个错啊?

Originally created by @Hu-Pei on GitHub (Nov 12, 2023). ### Provide a description of the help you need 本地部署,设置了代理为什么还是会报这个错啊?
yindo closed this issue 2026-02-21 17:28:02 -05:00
Author
Owner

@takatost commented on GitHub (Nov 13, 2023):

Hey, can you please check if you can access the OpenAI API?

@takatost commented on GitHub (Nov 13, 2023): Hey, can you please check if you can access the OpenAI API?
Author
Owner

@Hu-Pei commented on GitHub (Nov 13, 2023):

访问不了,但是我在服务器上请求google是成功的,不知道为什么!

@Hu-Pei commented on GitHub (Nov 13, 2023): 访问不了,但是我在服务器上请求google是成功的,不知道为什么!
Author
Owner

@takatost commented on GitHub (Nov 13, 2023):

You need to run Dify in an environment that has access to the OpenAI API. 😊

@takatost commented on GitHub (Nov 13, 2023): You need to run Dify in an environment that has access to the OpenAI API. 😊
Author
Owner

@Hu-Pei commented on GitHub (Nov 13, 2023):

请问API 扩展怎么使用,我试了文档也没有成功!

@Hu-Pei commented on GitHub (Nov 13, 2023): 请问API 扩展怎么使用,我试了文档也没有成功!
Author
Owner

@Hu-Pei commented on GitHub (Nov 13, 2023):

(base) [root@cdh-2 docker]# uvicorn main:app --reload
INFO: Will watch for changes in these directories: ['/dfs/dify/dify-main/docker']
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO: Started reloader process [2302573] using WatchFiles
INFO: Started server process [2302576]
INFO: Waiting for application startup.
INFO: Application startup complete.
我这也启动成功了访问不了

@Hu-Pei commented on GitHub (Nov 13, 2023): (base) [root@cdh-2 docker]# uvicorn main:app --reload INFO: Will watch for changes in these directories: ['/dfs/dify/dify-main/docker'] INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) INFO: Started reloader process [2302573] using WatchFiles INFO: Started server process [2302576] INFO: Waiting for application startup. INFO: Application startup complete. 我这也启动成功了访问不了
Author
Owner

@crazywoola commented on GitHub (Nov 13, 2023):

https://github.com/langgenius/dify/issues/694#issuecomment-1659467959

@crazywoola commented on GitHub (Nov 13, 2023): https://github.com/langgenius/dify/issues/694#issuecomment-1659467959
Author
Owner

@Theysua commented on GitHub (May 28, 2024):

Hi, there are circumstances that some IP can access google but is banned by OpenAI
你的IP可以访问谷歌,但是可能是已经被OpenAI Ban掉了,解决这个问题最好的办法是换个IP

@Theysua commented on GitHub (May 28, 2024): Hi, there are circumstances that some IP can access google but is banned by OpenAI 你的IP可以访问谷歌,但是可能是已经被OpenAI Ban掉了,解决这个问题最好的办法是换个IP
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#688