-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stuck with Retry Connection in CoPilot chat on WSL #3821
Comments
Could you retry with the latest VS Code Insiders (https://code.visualstudio.com/insiders/) and latest GitHub Copilot Chat pre-release version? That has improved logging and should give us more details about the |
I've been seeing the same issue for a couple days, although sometimes the fetch succeeds if I reload the window enough times. Here are the logs with the latest version of Insiders and the Copilot Chat extension:
|
@cailmdaley Please check the output of |
Not exactly the same problem but I can't seem to even sign in to github via VSCode on WSL2 but it works perfectly on windows, here's the output: GitHub Copilot Chat
NetworkUser Settings: "github.copilot.advanced": {
"debug.useElectronFetcher": true,
"debug.useNodeFetcher": false
} Connecting to https://api.github.com:
Connecting to https://api.githubcopilot.com/_ping:
DocumentationIn corporate networks: Troubleshooting firewall settings for GitHub Copilot. p.s. I'm experiencing the same issue on insiders version. |
@rgonaute Could you update the Copilot Chat extension to the latest stable version (0.23.2) and rerun the diagnostics command? Also append the Copilot Chat log from when this happens. ( |
@chrmarti sure thing, thank you (F1 > Developer: GitHub Copilot Chat Diagnostics)GitHub Copilot Chat
NetworkUser Settings: "github.copilot.advanced.debug.useElectronFetcher": true,
"github.copilot.advanced.debug.useNodeFetcher": false,
"github.copilot.advanced.debug.useNodeFetchFetcher": true Connecting to https://api.github.com:
Connecting to https://api.githubcopilot.com/_ping:
DocumentationIn corporate networks: Troubleshooting firewall settings for GitHub Copilot. (F1 > Output: Show Output Channels... > GitHub Copilot Chat)
|
Hi @chrmarti Here's the logs with the VS Code Insiders version 1.97.0-insider and GitHub Copilot Chat pre-release version 0.24.2025011301 GitHub Copilot logs GitHub Copilot Chat logs |
Hi @chrmarti Also, here's the output of (F1 > Developer: GitHub Copilot Chat Diagnostics) as you requested from another user. GitHub Copilot Chat
NetworkUser Settings: "github.copilot.advanced.debug.useElectronFetcher": true,
"github.copilot.advanced.debug.useNodeFetcher": false,
"github.copilot.advanced.debug.useNodeFetchFetcher": true Connecting to https://api.github.com:
Connecting to https://api.githubcopilot.com/_ping:
DocumentationIn corporate networks: Troubleshooting firewall settings for GitHub Copilot. |
|
Hello @chrmarti Thank you for the suggestion. I set the WSL's networking into mirrored mode and I can now access Copilot chat. The strange thing is, this was working fine until a couple of weeks ago. So, I don't know what triggered this behavior. Now, I have run into another issue, which may or may not be related to this. I get "Unable to get local issuer certificate" error now, and the automatic code suggestions have stopped working (again all this only on WSL; on Windows it works fine). Here's the GitHub Copilot log, just in case it's somehow related: 2025-01-14 12:38:35.655 [info] [certificates] Removed 3 expired certificates |
An update on the certificate issue and the auto code completions: Both issues got resolved after I disabled Http: Proxy Strict SSL in vscode settings. So, all my issues are now resolved. Thank you. |
Thanks for the feedback! I'm not sure if mirrored networking could somehow trigger the certificate issue. If you want to investigate that further, you could install the Network Proxy Test extension (https://marketplace.visualstudio.com/items?itemName=chrmarti.network-proxy-test) in WSL and check the output of Reopening to track that we add a way to handle the localhost proxy case better. |
GitHub Copilot Chat window shows Retry Connection on WSL, but works fine on Windows
Steps to Reproduce:
2025-01-07 10:44:24.457 [info] Can't use the Electron fetcher in this environment.
2025-01-07 10:44:24.457 [info] Using the Node fetch fetcher.
2025-01-07 10:44:24.457 [info] Initializing Git extension service.
2025-01-07 10:44:24.457 [info] Successfully activated the vscode.git extension.
2025-01-07 10:44:24.457 [info] Enablement state of the vscode.git extension: true.
2025-01-07 10:44:24.457 [info] Successfully registered Git commit message provider.
2025-01-07 10:44:25.161 [info] Logged in as
2025-01-07 10:44:25.258 [error] TypeError: fetch failed
at node:internal/deps/undici/undici:13392:13
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at ek._fetch (/home/linuxadmin/.vscode-server/extensions/github.copilot-chat-0.23.2/dist/extension.js:763:5811)
at B0.fetchCopilotToken (/home/linuxadmin/.vscode-server/extensions/github.copilot-chat-0.23.2/dist/extension.js:334:23966)
at B0.authFromGitHubToken (/home/linuxadmin/.vscode-server/extensions/github.copilot-chat-0.23.2/dist/extension.js:334:21634)
at B0._auth (/home/linuxadmin/.vscode-server/extensions/github.copilot-chat-0.23.2/dist/extension.js:446:3023): Failed to get copilot token
2025-01-07 10:44:25.258 [error] GitHub Copilot could not connect to server. Extension activation failed: "fetch failed"
2025-01-07 10:44:25.259 [warning] [LanguageModelAccess] LanguageModel/Embeddings are not available without auth token
2025-01-07 10:44:25.259 [error] TypeError: fetch failed
at node:internal/deps/undici/undici:13392:13
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at ek._fetch (/home/linuxadmin/.vscode-server/extensions/github.copilot-chat-0.23.2/dist/extension.js:763:5811)
at B0.fetchCopilotToken (/home/linuxadmin/.vscode-server/extensions/github.copilot-chat-0.23.2/dist/extension.js:334:23966)
at B0.authFromGitHubToken (/home/linuxadmin/.vscode-server/extensions/github.copilot-chat-0.23.2/dist/extension.js:334:21634)
at B0._auth (/home/linuxadmin/.vscode-server/extensions/github.copilot-chat-0.23.2/dist/extension.js:446:3023)
2025-01-07 10:44:25.259 [warning] [LanguageModelAccess] LanguageModel/Embeddings are not available without auth token
2025-01-07 10:44:25.259 [error] TypeError: fetch failed
at node:internal/deps/undici/undici:13392:13
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at ek._fetch (/home/linuxadmin/.vscode-server/extensions/github.copilot-chat-0.23.2/dist/extension.js:763:5811)
at B0.fetchCopilotToken (/home/linuxadmin/.vscode-server/extensions/github.copilot-chat-0.23.2/dist/extension.js:334:23966)
at B0.authFromGitHubToken (/home/linuxadmin/.vscode-server/extensions/github.copilot-chat-0.23.2/dist/extension.js:334:21634)
at B0._auth (/home/linuxadmin/.vscode-server/extensions/github.copilot-chat-0.23.2/dist/extension.js:446:3023)
2025-01-07 10:44:25.259 [info] activationBlocker from 'languageModelAccess' took for 811ms
The text was updated successfully, but these errors were encountered: