Sign in failed with error code 1001 #149634
-
Select Topic AreaQuestion BodyWhen using GitHub Copilot Chat in IDEA 2024.1 (Ultimate), clicking "Sign in with GitHub" shows a pop-up saying "retrieving GitHub device code." After waiting for a while, it fails with the following error: Sign in failed. Reason: Could not log in with device flow on github.com: Request timed out from LSP server, request id: 5, error code: 1001. Does anyone know how to resolve this issue? I have already tried the following steps, but none of them worked: Setting the IDEA proxy to 127.0.0.1. I am using Windows 10. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
|
Problem Solved:
|
Beta Was this translation helpful? Give feedback.
-
|
I encountered a similar problem when logging into copilot in PyCharm. |
Beta Was this translation helpful? Give feedback.
-
|
set environment variable NODE_TLS_REJECT_UNAUTHORIZED to 0. it solved. |
Beta Was this translation helpful? Give feedback.
Problem Solved:
Although the exact solution is unclear, the issue was resolved approximately through the following steps:
Ensure successful login in PyCharm
Verify that you can log in to GitHub Copilot successfully in PyCharm.
Set GitHub Copilot Networking to Native in IDEA
Go to File > Settings > GitHub Copilot > Networking and set it to "Native".
Clear IDEA Cache
Use File > Invalidate Caches / Restart in IntelliJ IDEA to clear the cache.
Sign in again in IntelliJ IDEA
Try signing in to GitHub Copilot again. If you see the message:
"Waiting for GitHub authentication... Enter the authentication code on the GitHub website to proceed,"
then it's likely working successfully.