Error using GitHub Copilot with Visual Studio 2022 Community

Cenk 951 Reputation points
2024-03-21T13:29:38.0766667+00:00

I am encountering an error while using GitHub Copilot with Visual Studio 2022 Community. The error message is:

NotSignedIn
[Error] An error occurred for 'CreateCopilotService': StreamJsonRpc.RemoteInvocationException: Could not log in with device flow on github.com: unable to verify the first certificate
   ... 

How can I resolve this issue?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,556 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 27,031 Reputation points Microsoft Vendor
    2024-03-22T07:58:55.53+00:00

    Hello @Cenk,

    Thanks for sharing us the error message.

    The error message indicates that "unable to verify the first certificate". Probably it’s blocked by a proxy.

    These errors are usually caused by a corporate proxy setup that uses custom certificates to intercept and inspect secure connections.

    Are you using a corporate proxy with custom certificates? If so, please kindly check this document: Troubleshooting certificate-related errors. You may need to configure the proxy and make sure that the certificates can be detected by GitHub Copilot.

    Except the proxy, please check if there’s any other limitations on your machine(permission limitations, antivirus, VPN, security management software…).

    Best Regards,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.