GitHub copilot connection issue "Error: (query) Execution failed: Error: error sending request for url (https://api.individual.githubcopilot. com/models): client error (Connect): invalid peer certificate: Unknownlssuer Try Again #207343
Replies: 2 comments
|
The important part of the error is: This points to a TLS certificate trust problem rather than a GitHub login problem. If you're using a proxy, corporate network, VPN, or antivirus with HTTPS inspection, it might be replacing GitHub's certificate with its own certificate. VS Code then needs to trust the CA used by that proxy. I would check these first:
curl -v https://api.individual.githubcopilot.com/modelsLook for the certificate issuer in the output.
curl -I https://api.github.comIf normal GitHub HTTPS requests also report certificate errors, fix the system CA store first.
{
"http.proxy": "http://proxy-host:proxy-port",
"http.proxySupport": "override"
}Use your actual proxy address. Also check whether environment variables such as
I would not recommend setting TLS verification to false. It hides the certificate problem and removes an important security check. Since the problem happens on multiple networks, I would especially check the local machine's CA certificates, antivirus HTTPS inspection, and proxy environment variables. If |
|
Hello Kushan, Thank you for your response. Yes, I have already tried all the possible troubleshooting steps, but unfortunately the issue still persists. As mentioned earlier, I have already configured the suggested JSON settings; however, I am encountering the same problem on both my local machine and the remote machine. Could you please let me know if there are any additional checks or troubleshooting steps to identify and resolve this TLS certificate issue? Thank you, |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Question
💬 Feature/Topic Area
VS Code
Body
I logged in GitHub copilot with GitHub credentials , setup the proxy's and updated json file but facing "
Error: (query) Execution failed: Error:
error sending request for url
(https://api.individual.githubcopilot.
com/models): client error (Connect):
invalid peer certificate:
Unknownlssuer
Try Again
Also tried with other network also , still facing the same.
Please help me on this, thank you.
All reactions