why is my github copilot not working all of a sudden?

Viewed 3981

I have been using copilot for a while now, and one fine day on opening VSCode this error appeared.

"[ERROR] [default] [2022-04-09T08:38:10.995Z] GitHub Copilot could not connect to server. Extension activation failed: "certificate has expired"

I looked up for it everywhere and found nothing, it'd be a great help if someone could fix this for me!

[here's the error and how the extension looks like on the status bar]

2 Answers

Two common causes:

  1. An out of date IDE. Solution: make sure your IDE is up to date
  2. If you're not properly signed in to GitHub CoPilot. Solution: make sure you're signed in to GitHub CoPilot

E.g. In VSCode look on the bottom left, if you see this, you might not be signed in:

enter image description here

Click the icon, and follow the prompts to sign in, then CoPilot should work.

Two things you should check:

1=> Update VSCode to the latest version

2=> Update GitHub Copilot latest version

From the Menubar, go to View -> Output; Choose GitHub Copilot from the pulldown on the left to see the log of what is going on in the background.

Related