-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
APIConnectionError: Error communicating with OpenAI #56
Comments
Hello! Thank you for reaching out! The CERTIFICATE_VERIFY_FAILED error might be caused by an outdated certifi package in Python. Here's a relevant discussion: https://stackoverflow.com/questions/51925384/unable-to-get-local-issuer-certificate-when-using-requests-in-python. Let me know if this doesn't help, and we'll keep troubleshooting. |
Unfortunately the
I also ran the verification func from certifi lib and got the expected path:
|
I figured it out, my VPN was blocking external requests, for anyone who has a M1 Macbook in the future make sure your network calls aren't being tunneled by another app :) |
Same as win10. I figured out that just now by simply shutting down my clash terminal XD |
HI [ElementQi] |
You may misunderstand what am I talking about. XD is an emoji. You just need to shutdown your VPN services on your device. 哥,XD就是个表情,你把你电脑上的VPN全关了就行,开VPN有时候访问不了chatGPT |
Thank you! I got it. |
All methods above can not solve my problem , because I'm in China , where one can't connect to openai without VPN or Proxy. |
I'm in China as well. One of my accounts is using a google account by implementing an Indian virtual phone number, and it works only when I don't use any proxies(As for website login, I need to use VPN to login google account and then close it to use the chatGPT interface). One of my friends' accounts is signed up with his qqmail and Indian phone number, which can only access openAI by using VPN. That's weird. |
都是中国人拽啥洋文XD
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2023年3月3日(星期五) 晚上6:27
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [openai/openai-python] APIConnectionError: Error communicating with OpenAI (Issue #56)
All methods above can not solve my problem , because I'm in China , where one can't connect to openai without VPN or Proxy. For my Chinese compatriots following method works: https://www.zhihu.com/question/587322263/answer/2919916984
I'm in China as well. One of my accounts is using a google account by implementing an Indian virtual phone number, and it works only when I don't use any proxies(As for website login, I need to use VPN to login google account and then close it to use the chatGPT interface). One of my friends' accounts is signed up with his qqmail and Indian phone number, which can only access openAI by using VPN. That's weird.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
写习惯了XD |
确实解决了,谢谢大佬! |
您好,加上后又报另一个错误。这个有办法解决吗? |
|
关闭vpn就链接超时呀 |
确定代理ip和代理端口写的是自己挂的vpn的ip和端口 |
我已经把api接口调通了,解决了问题,但是,被封了,不知道因为什么,在网上有很多类似的。但是chatgpt还可以用,api禁止访问了。
…------------------ 原始邮件 ------------------
发件人: "openai/openai-python" ***@***.***>;
发送时间: 2023年3月10日(星期五) 晚上7:26
***@***.***>;
***@***.******@***.***>;
主题: Re: [openai/openai-python] APIConnectionError: Error communicating with OpenAI (Issue #56)
All methods above can not solve my problem , because I'm in China , where one can't connect to openai without VPN or Proxy. For my Chinese compatriots following method works: https://www.zhihu.com/question/587322263/answer/2919916984
您好,加上后又报另一个错误。这个有办法解决吗? openai.error.APIConnectionError: Error communicating with OpenAI: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001A5B8C1CB88>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。')))
确定代理ip和代理端口写的是自己挂的vpn的ip和端口
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
我租用了一个美国服务器准备部署一个跳板,结果在服务器上就无法ping通api.openai.com |
在国内又搞了台服务器,在服务器上挂VPN又可以==! |
import openai |
Running into certificate errors when trying to ping the API. Happens both in
virtualenv
andregular
PythonThe text was updated successfully, but these errors were encountered: