GitHub Copilot show this error
GitHub Copilot could not connect to server. Extension activation failed: "User not authorized"
But I have authorized on GitHub
GitHub Copilot show this error
GitHub Copilot could not connect to server. Extension activation failed: "User not authorized"
But I have authorized on GitHub
Summary:
If you are trying GitHub copilot for the first time, this error indicates that you are not part of the beta invite list. What you can do is you can join the waitlist (https://github.com/features/copilot/signup) and wait for your chance to try the beta.
If you have already got the invitation, then there was an error connecting to api.github.com to request a token to use the Copilot service.
Full Discussion: https://github.com/github/feedback/discussions/7707
Update: Github Copilot is free until August 22, 2022 (https://github.com/github-copilot/tp_signup)
If you were previously using the Copilot limited invitation access,
as of June 23, mine got deactivated because Github Copilot will be free only until August 22.
I had to activate my free trial here
To solve this issue follow the below steps.
-First, go to your Github account.
-Go to setting select copilot and click on enable copilot.
-Then select Continue without payment details
-Then allow and tick the check box. -Now go to IDE and uninstall copilot and again install. then sign in to GitHub.
This is the scenario that happened to me.
I have multiple github accounts logged into my vscode.
In that only one account has access to the GitHub Copilot.
So in order to give access to the token for the subscribed GitHub copilot, you should go to
1. Click the Accounts section at the bottom left side of the sidebar with a profile icon
2. Choose the GitHub profile you need to deactivate copilot.
3. Click Manage trusted extensions
4. Untick GitHub copilot/nightly.
If you already got the invitation:
Copilot extension.It is currently open to students and some developers, in which case only developers sent an invitation from GitHub can use Copilot.
If you have permission to use Copilot then you need to follow the steps.
[If you are a student, then make GitHub account a student account, then you will enjoy all these services. ]