Open sdheepakdba opened 5 months ago
@hediet Since today I have the same problem, I have windows 11 enterprice, it does not work neither in VS Code nor in Visual Studio 2022.
This is the last line of the problem in the visual studio code chat log: Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:153:49553) This is the last line of the problem in the visual studio 2022 chat log: [Conversations Information] [CopilotCompletions] Error while processing the event: The SSL connection could not be established, see inner exception.
Hi, could you please share the logs from the Developer Tools (invoke command "Toggle Developer Tools" from the command palette (press F1 to open)) ?
@ulugbekna 137 [Extension Host] [extension] Error: Unable to resolve chat model with family selection: gpt-4 at UA.getChatModel (c:\Users\vmvv.vscode\extensions\github.copilot-chat-0.17.2024062801\dist\extension.js:1317:2578) at processTicksAndRejections (node:internal/process/task_queues:95:5) at ZT.getChatEndpoint (c:\Users\vmvv.vscode\extensions\github.copilot-chat-0.17.2024062801\dist\extension.js:1317:5768) at t.invoke (c:\Users\vmvv.vscode\extensions\github.copilot-chat-0.17.2024062801\dist\extension.js:839:3611) at aM._provideResponseWithProgress (c:\Users\vmvv.vscode\extensions\github.copilot-chat-0.17.2024062801\dist\extension.js:872:1222) at aM.provideResponseWithProgress (c:\Users\vmvv.vscode\extensions\github.copilot-chat-0.17.2024062801\dist\extension.js:870:4562) at n.y (c:\Users\vmvv.vscode\extensions\github.copilot-chat-0.17.2024062801\dist\extension.js:882:1826) at g.$invokeAgent (c:\Users\vmvv\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:154:50217)
Please update to VS Code 1.91.0 and GitHub Copilot Chat 0.17.0.
If it doesn't work with these versions, please run F1
> Developer: GitHub Copilot Chat Diagnostics
and share the output here.
@chrmarti I have VS Code 1.91.0 and GitHub Copilot Chat 0.17.0.
and I continued with the same problem:
workbench.desktop.main.js:sourcemap:139 [Extension Host] [extension] Error: Unable to resolve chat model with family selection: gpt-4 at UA.getChatModel (c:\Users\vmvv.vscode\extensions\github.copilot-chat-0.17.0\dist\extension.js:1317:2578) at processTicksAndRejections (node:internal/process/task_queues:95:5) at ZT.getChatEndpoint (c:\Users\vmvv.vscode\extensions\github.copilot-chat-0.17.0\dist\extension.js:1317:5768) at t.invoke (c:\Users\vmvv.vscode\extensions\github.copilot-chat-0.17.0\dist\extension.js:839:3611) at aM._provideResponseWithProgress (c:\Users\vmvv.vscode\extensions\github.copilot-chat-0.17.0\dist\extension.js:872:1222) at aM.provideResponseWithProgress (c:\Users\vmvv.vscode\extensions\github.copilot-chat-0.17.0\dist\extension.js:870:4601) at n.y (c:\Users\vmvv.vscode\extensions\github.copilot-chat-0.17.0\dist\extension.js:882:1826) at g.$invokeAgent (c:\Users\vmvv\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:154:50217)
thank you
Please run F1
> Developer: GitHub Copilot Chat Diagnostics
and share the output here.
Please run
F1
>Developer: GitHub Copilot Chat Diagnostics
and share the output here.
This is the output:
workbench.desktop.main.js:sourcemap:139 [Extension Host] [extension] Error: Unable to resolve chat model with family selection: gpt-4 at UA.getChatModel (c:\Users\vmvv.vscode\extensions\github.copilot-chat-0.17.0\dist\extension.js:1317:2578) at processTicksAndRejections (node:internal/process/task_queues:95:5) at ZT.getChatEndpoint (c:\Users\vmvv.vscode\extensions\github.copilot-chat-0.17.0\dist\extension.js:1317:5768) at t.invoke (c:\Users\vmvv.vscode\extensions\github.copilot-chat-0.17.0\dist\extension.js:839:3611) at aM._provideResponseWithProgress (c:\Users\vmvv.vscode\extensions\github.copilot-chat-0.17.0\dist\extension.js:872:1222) at aM.provideResponseWithProgress (c:\Users\vmvv.vscode\extensions\github.copilot-chat-0.17.0\dist\extension.js:870:4601) at n.y (c:\Users\vmvv.vscode\extensions\github.copilot-chat-0.17.0\dist\extension.js:882:1826) at g.$invokeAgent (c:\Users\vmvv\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:154:50217)
@hediet Since today I have the same problem, I have windows 11 enterprice, it does not work neither in VS Code nor in Visual Studio 2022.
This is the last line of the problem in the visual studio code chat log: Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:153:49553) This is the last line of the problem in the visual studio 2022 chat log: [Conversations Information] [CopilotCompletions] Error while processing the event: The SSL connection could not be established, see inner exception.
I'm having the exact same problem and it started about a week ago...
From chat diagnostics
DNS Lookup api.githubcopilot.com: 140.82.112.22
Fetching https://api.githubcopilot.com/_ping:
- Electron Fetcher: Error: net::ERR_CERT_DATE_INVALID
- Node Fetcher: Error: certificate has expired
- Helix Fetcher (configured): Error: certificate has expired
@sacalata Thanks, could you install the Network Proxy Test extension (https://marketplace.visualstudio.com/items?itemName=chrmarti.network-proxy-test) and check the output of F1
> Network Proxy Test: Test Connection
for https://api.githubcopilot.com
in VS Code?
@chrmarti Note: Make sure to replace all sensitive information with dummy values before sharing this output.
VS Code 1.91.0 (ea1445cc7016315d0f5728f8e8b12a45dc0a7286) Network Proxy Test 0.0.11 win32 10.0.22631 x64
Settings:
Environment variables:
Sending GET request to https://api.githubcopilot.com... vscode-proxy-agent: DIRECT Received error: read ECONNRESET (ECONNRESET) Retrying while ignoring certificate issues to collect information on the certificate chain.
Sending GET request to https://api.githubcopilot.com (allowing unauthorized)... vscode-proxy-agent: DIRECT Received error: read ECONNRESET (ECONNRESET)
@leahrdt Are you behind a firewall that might need to allow-list api.githubcopilot.com?
Could you also run F1
> GitHub Copilot: Collect Diagnostics
? That will check a few more hosts that are also needed by the GitHub Copilot extensions.
@chrmarti This is the result of GitHub Copilot: Collect Diagnostics
win-ca
installed?: truemac-ca
installed?: falseI had a similar or maybe even the same issue and got copilot chat working again adding the following setting (and restarting VS code afterwards):
"github.copilot.advanced": {
"debug.useElectronFetcher": true,
},
See additional info here
@leahrdt api.githubcopilot.com
seems to be the only host that is not reachable. Please check with your IT and let them allow-list https://*.githubcopilot.com
in the company network. Also see: https://docs.github.com/en/copilot/troubleshooting-github-copilot/troubleshooting-firewall-settings-for-github-copilot
Perfect, it's solved! thank you
@chrmarti Hello, Mr. Marti. This is my result. And, it's clear that both github.com
and api.githubcopilot.com
are not reachable. But I don't know how to put them into the allow-list. Could you please tell me the method in details? Besides, I'm not sure whether Is "win-ca" installed?: false
is relevant to the error massage? Should I install the extension win-ca
? Thanks for your attention.
win-ca
installed?: falsemac-ca
installed?: false@Willaaaaaaa Is this in a company network? If so, please share the following documentation with your IT department asking them to allow-list the required hosts: https://docs.github.com/en/copilot/troubleshooting-github-copilot/troubleshooting-firewall-settings-for-github-copilot
@chrmarti No, sir. I'm at home. I don't quite understand the documentation. Is there any possible solution that I can do myself? Sorry to bother you, but I'm really a beginner in computer science learning and have no idea on how to deal with such problem. It's so kind of you for replying me.
@Willaaaaaaa The mixed reachability results look similar to what you might see with a firewall that needs to allow-list more hosts:
Maybe you are using some VPN? Could you also run F1
> Developer: GitHub Copilot Chat Diagnostics
and share the result here?
@chrmarti Yes, sir. I use VPN sometimes because I'm in China. But regardless of whether I use VPN or not, it will display an error message. Here are the results. Thanks again for your reply.
User Settings:
"github.copilot.advanced": {
"debug.useElectronFetcher": false,
"debug.useNodeFetcher": false
}
DNS Lookup api.githubcopilot.com: 140.82.113.22
Fetching https://api.githubcopilot.com/_ping:
User Settings:
"github.copilot.advanced": {
"debug.useElectronFetcher": false,
"debug.useNodeFetcher": false
}
DNS Lookup api.githubcopilot.com: 140.82.113.21
Fetching https://api.githubcopilot.com/_ping:
Given these results you could try adding the follow to your user settings (F1
> Preferences: Open User Settings (JSON)
):
"github.copilot.advanced": {
"debug.useNodeFetcher": true
}
And then restart VS Code.
@chrmarti OMG!! It really works!!!! You really are the smartest programmer I have ever met so far! Thank you, sir! Love you!
@chrmarti Bad news, sir. My coplilot seems to be unable to access the internet normally again. The diagnostic reports of Electron Fetcher
, Node Fetcher
and Helix Fetcher
sometimes report error at the same time. I tried to change the DNS of api.githubcopilot.com
to 140.82.113.21
, which made Node Extractor
work properly yesterday, but it still didn't work. What should I do now? Sorry to bother you again, but you are the best man I can think of.
The network issue is a bit strange, sometimes it can connect normally, and sometimes it cannot. And based on my observation, it have nothing to do with VPN. It more likely to be a probabilistic event.
Hey @chrmarti, this issue might need further attention.
@sdheepakdba, you can help us out by closing this issue if the problem no longer exists, or adding more information.
Thanks , Please close the request
Errors :- Unable to resolve model with family selection: gpt-4