For Intellij plugin, GitHub Copilot shows error please login to github and try again
.
I have already done the following:
What should I do to resolve this error?
Debanjan Basu suggests in the comments:
logout, restart IDE and login again.
You might have signed up for copilot after the session was initiated
You have multiple discussion reporting this error.
discussions 18132 includes:
Behind corporate proxy. Used latest stable version with CLion 1.1.28.1744 and added
-Dcopilot.agent.disabled=true
to Custom VM properties.Also delete
github-copilot.local.xml
andgithub-copilot.xml
in.config/JetBrains/CLion2022.2/options
.
This has since been answered by GitHub staff member Benjamin Muskalla (Aug. 11th, 2022):
We’re happy to announce that the latest release of Copilot for Visual Studio Code and Copilot for IntelliJ contains preliminary support for connecting through HTTP proxy servers.
The current version supports basic HTTP proxy setups, with and without basic authentication.
For Jetbrains IntelliJ
- Ensure you have Copilot for IntelliJ 1.1.29.1869 or higher installed in your IDE.
- Setup the
HTTP proxy
in your Preferences.- Restart your editor so the proxy configuration is applied correctly to all components requiring connections via the proxy.
For Visual Studio Code
Ensure you have Copilot for VS Code 1.39.6432 or higher installed in your editor.
To set up your proxy, go to your VSCode Settings and ensure your
HTTP proxy
configuration is set up properly.
Alternatively, Copilot uses thehttp_proxy
andhttps_proxy
variables from your environment.
Restart your editor so the proxy configuration is applied correctly to all components requiring connections via the proxy.