Error using GitHub Copilot with Visual Studio 2022 Community

Cenk 1,051 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?

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,791 Reputation points Microsoft External Staff
    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.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.