didalgolab / chatgpt-intellij-plugin

Yet another JetBrains extension that enables you to use ChatGPT within your favorite IDE.
Apache License 2.0
31 stars 14 forks source link

Failed to resolve api.openai.com #30

Open gtavoalva opened 2 months ago

gtavoalva commented 2 months ago

The plugin cannot connect to api.openai.com to login. Refresh models works well, but when press "Test Connection", the message few seconds later is "Failed to resolve 'api.openai.com' [A(1)] after 2 queries". The same thing if we accept configuration and try to send a prompt. imagen

didalgolab commented 2 months ago

I encountered a similar issue just yesterday after moving my PC to another network while it was hibernated. From my quick research, it appears that Spring's WebClient which I use in the plugin might be ignoring your host machine's DNS settings. Have you tried restarting the IDE or computer to see if the issue persists?