Skip to content

Cannot auth on WSL #23

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

Closed
AntoineGS opened this issue May 20, 2025 · 5 comments
Closed

Cannot auth on WSL #23

AntoineGS opened this issue May 20, 2025 · 5 comments

Comments

@AntoineGS
Copy link

I am having problems with authenticating (:Copilot auth) within WSL running Ubuntu 24.04, through Windows 11.
The browser page is opened to the /device page, I can paste the auth code and it succeeds on the website.
However it never returns within NeoVim, and if I cancel the task and check for the token file it is not present.
PS: The issue also happens on copilot.lua which might indicate an issue on the LSP-side.

@tpope
Copy link

tpope commented May 22, 2025

Definitely sounds like a Copilot Language Server issue. Can you check if there's anything interesting in :Copilot log? If there's not, try letting it run a long time in the background and then check for errors again. Sometimes network requests can hang for what seems like forever before timing out.

@AntoineGS
Copy link
Author

You are correct it took 15 minutes to time out 🤣

Image

Should I report this on the LSP repo instead?

@0xjairo
Copy link

0xjairo commented May 26, 2025

This manual procedure via curl and copy+paste worked
zbirenbaum/copilot.lua#479 (comment)

@tpope tpope transferred this issue from github/copilot.vim May 27, 2025
@tpope
Copy link

tpope commented May 27, 2025

Please try again on the latest version. It should at the very least give a better error message.

@AntoineGS
Copy link
Author

It works now, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants