Skip to content
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

VS Code Copilot extension can't reach server on WSL Remotes #4065

Closed
selfagency opened this issue Jan 16, 2025 · 4 comments
Closed

VS Code Copilot extension can't reach server on WSL Remotes #4065

selfagency opened this issue Jan 16, 2025 · 4 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@selfagency
Copy link

Type: Bug

Copilot today stopped working in VS Code on WSL Remotes. It works fine when I'm using a local repo within Windows. But if I remote into WSL, it tells me to "Sign in to GitHub.com" and then nothing happens when I click "Sign in." This is effecting both the Chat and standard plugins in both the latest general and preview releases. I can verify that I am able to reach github.com from within the VS Code terminal on WSL.

2025-01-16 10:18:00.245 [info] Can't use the Electron fetcher in this environment.
2025-01-16 10:18:00.245 [info] Using the Node fetch fetcher.
2025-01-16 10:18:00.245 [info] Initializing Git extension service.
2025-01-16 10:18:00.245 [info] Successfully activated the vscode.git extension.
2025-01-16 10:18:00.245 [info] Enablement state of the vscode.git extension: true.
2025-01-16 10:18:00.245 [info] Successfully registered Git commit message provider.
2025-01-16 10:18:01.996 [info] Logged in as selfagency
2025-01-16 10:18:28.042 [error] TypeError: fetch failed
    at node:internal/deps/undici/undici:13392:13
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at ik._fetch (/home/dsieradski/.vscode-server/extensions/github.copilot-chat-0.24.2024121201/dist/extension.js:780:5811)
    at uB._makeGHAPIRequest (/home/dsieradski/.vscode-server/extensions/github.copilot-chat-0.24.2024121201/dist/extension.js:334:14883)
    at bM.authFromGitHubToken (/home/dsieradski/.vscode-server/extensions/github.copilot-chat-0.24.2024121201/dist/extension.js:334:23403)
    at bM._auth (/home/dsieradski/.vscode-server/extensions/github.copilot-chat-0.24.2024121201/dist/extension.js:446:3023): Failed to get copilot token
2025-01-16 10:18:28.042 [error] GitHub Copilot could not connect to server. Extension activation failed: "fetch failed"
2025-01-16 10:18:28.042 [warning] [LanguageModelAccess] LanguageModel/Embeddings are not available without auth token
2025-01-16 10:18:28.042 [error] TypeError: fetch failed
    at node:internal/deps/undici/undici:13392:13
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at ik._fetch (/home/dsieradski/.vscode-server/extensions/github.copilot-chat-0.24.2024121201/dist/extension.js:780:5811)
    at uB._makeGHAPIRequest (/home/dsieradski/.vscode-server/extensions/github.copilot-chat-0.24.2024121201/dist/extension.js:334:14883)
    at bM.authFromGitHubToken (/home/dsieradski/.vscode-server/extensions/github.copilot-chat-0.24.2024121201/dist/extension.js:334:23403)
    at bM._auth (/home/dsieradski/.vscode-server/extensions/github.copilot-chat-0.24.2024121201/dist/extension.js:446:3023)
2025-01-16 10:18:28.042 [warning] [LanguageModelAccess] LanguageModel/Embeddings are not available without auth token
2025-01-16 10:18:28.042 [error] TypeError: fetch failed
    at node:internal/deps/undici/undici:13392:13
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at ik._fetch (/home/dsieradski/.vscode-server/extensions/github.copilot-chat-0.24.2024121201/dist/extension.js:780:5811)
    at uB._makeGHAPIRequest (/home/dsieradski/.vscode-server/extensions/github.copilot-chat-0.24.2024121201/dist/extension.js:334:14883)
    at bM.authFromGitHubToken (/home/dsieradski/.vscode-server/extensions/github.copilot-chat-0.24.2024121201/dist/extension.js:334:23403)
    at bM._auth (/home/dsieradski/.vscode-server/extensions/github.copilot-chat-0.24.2024121201/dist/extension.js:446:3023)
2025-01-16 10:18:28.043 [info] activationBlocker from 'languageModelAccess' took for 44544ms
❯ ping github.com
PING github.com (140.82.113.3) 56(84) bytes of data.
64 bytes from lb-140-82-113-3-iad.github.com (140.82.113.3): icmp_seq=1 ttl=242 time=16.8 ms
64 bytes from lb-140-82-113-3-iad.github.com (140.82.113.3): icmp_seq=2 ttl=242 time=16.4 ms
64 bytes from lb-140-82-113-3-iad.github.com (140.82.113.3): icmp_seq=3 ttl=242 time=16.5 ms
64 bytes from lb-140-82-113-3-iad.github.com (140.82.113.3): icmp_seq=4 ttl=242 time=16.5 ms
64 bytes from lb-140-82-113-3-iad.github.com (140.82.113.3): icmp_seq=5 ttl=242 time=16.3 ms
^C
--- github.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4007ms
rtt min/avg/max/mdev = 16.334/16.526/16.782/0.147 ms

Extension version: 0.24.2024121201
VS Code version: Code 1.96.3 (91fbdddc47bc9c09064bf7acf133d22631cbf083, 2025-01-09T18:14:09.060Z)
OS version: Windows_NT x64 10.0.22635
Modes:
Remote OS version: Linux x64 5.15.167.4-microsoft-standard-WSL2

Prompt Details
Info: Can't use the Electron fetcher in this environment.
Info: Using the Node fetch fetcher.
Info: Initializing Git extension service.
Debug: [context keys] Updating context keys.
System Info
Item Value
CPUs 13th Gen Intel(R) Core(TM) i7-1355U (12 x 2611)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.64GB (10.31GB free)
Process Argv
Screen Reader no
VM 0%
Item Value
Remote WSL: Ubuntu-20.04
OS Linux x64 5.15.167.4-microsoft-standard-WSL2
CPUs 13th Gen Intel(R) Core(TM) i7-1355U (12 x 0)
Memory (System) 15.44GB (12.38GB free)
VM 0%
@vs-code-engineering vs-code-engineering bot added the triage-needed Issues needing to be assigned to the prospective feature owner label Jan 16, 2025
@selfagency
Copy link
Author

I was also just able to login to the Codespaces plugin from within WSL without issue.

@selfagency
Copy link
Author

selfagency commented Jan 16, 2025

I turned on a web proxy service and routed WSL through it and it worked. But without the proxy, it doesn't.

2025-01-16 10:50:08.140 [info] Can't use the Electron fetcher in this environment.
2025-01-16 10:50:08.140 [info] Using the Node fetch fetcher.
2025-01-16 10:50:08.140 [info] Initializing Git extension service.
2025-01-16 10:50:08.140 [info] Successfully activated the vscode.git extension.
2025-01-16 10:50:08.140 [info] Enablement state of the vscode.git extension: true.
2025-01-16 10:50:08.140 [info] Successfully registered Git commit message provider.
2025-01-16 10:50:12.519 [info] Logged in as selfagency
2025-01-16 10:50:14.468 [info] Got Copilot token for selfagency
2025-01-16 10:50:14.749 [info] copilot token chat_enabled: true, sku: monthly_subscriber
2025-01-16 10:50:14.751 [info] Registering default platform agent...
2025-01-16 10:50:14.762 [info] Successfully activated the GitHub.vscode-pull-request-github extension.
2025-01-16 10:50:14.762 [info] [githubTitleAndDescriptionProvider] Initializing GitHub PR title and description provider provider.
2025-01-16 10:50:14.762 [info] Successfully registered GitHub PR title and description provider.
2025-01-16 10:50:14.762 [info] Successfully registered GitHub PR reviewer comments provider.
2025-01-16 10:50:15.303 [info] Fetched model metadata in 800ms 152cfb0c-dee4-445b-9c6d-f7a8d0114afa
2025-01-16 10:50:15.307 [info] activationBlocker from 'languageModelAccess' took for 25005ms

@bhavyaus bhavyaus removed their assignment Jan 16, 2025
@bhavyaus
Copy link
Contributor

Duplicate of #3821, could you please try the steps here to provide more info #3821 (comment) ?

@bhavyaus bhavyaus self-assigned this Jan 16, 2025
@bhavyaus bhavyaus added info-needed Issue requires more information from poster and removed triage-needed Issues needing to be assigned to the prospective feature owner labels Jan 16, 2025
Copy link

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

@vs-code-engineering vs-code-engineering bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 24, 2025
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Mar 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

2 participants