Skip to content

Stuck with Retry Connection in CoPilot chat on WSL #3821

@deshguru

Description

@deshguru
  • Copilot Chat Extension Version: 0.23 (2024-12-12)
  • VS Code Version: 1.96.2
  • OS Version: WSL2 on Windows 11 Enterprise 23H2 OS build: 22631.4602
  • Logs:

GitHub Copilot Chat window shows Retry Connection on WSL, but works fine on Windows

Steps to Reproduce:

  1. Open VS Code on WSL.
  2. Access GitHub Copilot chat
  3. I see the following in the GitHub Copilot Chat log

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

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugnetworkNetwork infrastructure for request/responseverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions