0

I've been getting this error while trying to use github copilot in visual studio.

invalid copilot token: missing token: 404 auth status: notauthorized

Things I tried but didn't help - logging out / in; uninstall / reinstall extension(s).

Any ideas?

Dr Phil
  • 430
  • 5
  • 17

2 Answers2

2

For those really looking for a basic answer, assuming you have a GitHub Copilot subscription and that you are signed into GitHub, check the following before going with the above answer.

there is an icon in the bottom left-hand side of the coding window. It looks like this:

Github copilot icon

Now, follow the steps to authenticate your account on Github.

Should work after that.

For those that need a detailed demonstration this YouTube video is a great resource

dopecello
  • 43
  • 5
0

Turned out to be a firewall issue. I couldn't find any documentation, but apparently the autopilot extension calls home on port 9354 (TCP).

The firewall set up here blocks traffic on outgoing ports by default, which is why the authentication was failing.

Dr Phil
  • 430
  • 5
  • 17