CodeGPT icon indicating copy to clipboard operation
CodeGPT copied to clipboard

Failed to connect to api.openai.com/31.13.94.49:443

Open zhaowan-hub opened this issue 2 years ago • 7 comments

What happened?

I installed the CodeGPT plugin in Pycharm, and after filling in my GPT API, it keeps showing the error "Failed to connect to api.openai.com/31.13.94.49:443", can it be solved?

Relevant log output or stack trace

No response

Steps to reproduce

No response

CodeGPT version

2.2.12

Operating System

None

zhaowan-hub avatar Jan 24 '24 01:01 zhaowan-hub

Did you change any defaults in the Settings? It should look like this: image

Crustack avatar Jan 27 '24 17:01 Crustack

I didn't change any defaults in the Settings. This is mine. But, I am in China, and I've opened a global proxy. The global proxy works well in the Chrome extensions or office plugins, but doesn't work in Pycharm CodeGPT. image

zhaowan-hub avatar Jan 29 '24 01:01 zhaowan-hub

Hey,

If you want to tunnel the requests through a proxy, then you need to configure your proxy settings in the CodeGPT settings. Have you done that?

Screenshot 2024-02-02 at 15 53 31

carlrobertoh avatar Feb 02 '24 13:02 carlrobertoh

I used a proxy, and turned on the proxy, which is a Ghelper plugin for Chrome, as shown below. But I didn't configure my proxy settings in the CodeGPT settings. Since I don't know how to set up, do you know how to set up a proxy in CodeGPT settings if you I Chrome's Ghelper plugin? image

zhaowan-hub avatar Feb 06 '24 01:02 zhaowan-hub

Hello, I've also noticed this issue and have been tracing the source code, but I'm not sure why the proxy selector in IDEA does not default to the local network proxy. However, when I run tests, it can select the local proxy. Could you explain this to me in more detail or offer some advice on where to look in the source code? @carlrobertoh

shanzhongxu avatar Apr 17 '24 07:04 shanzhongxu

Hi, have you solved it?

Agrroc avatar Apr 27 '24 12:04 Agrroc

No, I have not solved it now. Thank you very much .

在 2024-04-27 19:05:46,"Agrroc" @.***> 写道:

Hi, have you solved it?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

zhaowan-hub avatar Apr 29 '24 01:04 zhaowan-hub