Skip to content

Copilot won't authorize #3811

@tomshaffner

Description

@tomshaffner

Type: Bug

I was using copilot fine, then suddenly it says I need to sign in, and when I try it won't work. Sometimes I can get to the github page and click accept, after which nothing happens. Sometimes I don't even get the request to open up that page. Parts of some of the logs from the various copilot things.

Copilot:
2025-01-06 16:27:33.765 [info] [certificates] Removed 18 expired certificates
2025-01-06 16:27:46.736 [info] [auth] Invalid copilot token: missing token: 502
2025-01-06 16:27:57.928 [info] [fetcher] Using Helix fetcher.
2025-01-06 16:27:57.928 [info] [code-referencing] Public code references are enabled.

Copilot chat:
2025-01-06 16:27:32.567 [info] Using the Electron fetcher.
2025-01-06 16:27:32.567 [info] Initializing Git extension service.
2025-01-06 16:27:32.567 [info] Successfully activated the vscode.git extension.
2025-01-06 16:27:32.567 [info] Enablement state of the vscode.git extension: true.
2025-01-06 16:27:32.567 [info] Successfully registered Git commit message provider.
2025-01-06 16:27:35.265 [info] Logged in as tomshaffner
2025-01-06 16:27:46.944 [warning] Invalid copilot token: missing token: 502
2025-01-06 16:27:47.213 [error] Error: Failed to get copilot token
at B0._authShowWarnings (c:\Users\shaff.vscode\extensions\github.copilot-chat-0.23.2\dist\extension.js:446:4102)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at B0.getCopilotToken (c:\Users\shaff.vscode\extensions\github.copilot-chat-0.23.2\dist\extension.js:446:2438)
at dF.getCopilotToken (c:\Users\shaff.vscode\extensions\github.copilot-chat-0.23.2\dist\extension.js:334:26267)
at IZ.waitForChatEnabled (c:\Users\shaff.vscode\extensions\github.copilot-chat-0.23.2\dist\extension.js:444:13713)
at IZ.run (c:\Users\shaff.vscode\extensions\github.copilot-chat-0.23.2\dist\extension.js:444:13432)
at w0.askToUpgradeAuthPermissions (c:\Users\shaff.vscode\extensions\github.copilot-chat-0.23.2\dist\extension.js:444:12870): Failed to get copilot token
2025-01-06 16:27:47.214 [error] GitHub Copilot could not connect to server. Extension activation failed: "Failed to get copilot token"
2025-01-06 16:27:47.214 [warning] [LanguageModelAccess] LanguageModel/Embeddings are not available without auth token
2025-01-06 16:27:47.214 [error] Error: Failed to get copilot token
at B0._authShowWarnings (c:\Users\shaff.vscode\extensions\github.copilot-chat-0.23.2\dist\extension.js:446:4102)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at B0.getCopilotToken (c:\Users\shaff.vscode\extensions\github.copilot-chat-0.23.2\dist\extension.js:446:2438)
at dF.getCopilotToken (c:\Users\shaff.vscode\extensions\github.copilot-chat-0.23.2\dist\extension.js:334:26267)
at Y0._getAuthSession (c:\Users\shaff.vscode\extensions\github.copilot-chat-0.23.2\dist\extension.js:488:2825)
at Object.A [as task] (c:\Users\shaff.vscode\extensions\github.copilot-chat-0.23.2\dist\extension.js:488:640)
at xC._processQueue (c:\Users\shaff.vscode\extensions\github.copilot-chat-0.23.2\dist\extension.js:487:1101)
2025-01-06 16:27:47.214 [warning] [LanguageModelAccess] LanguageModel/Embeddings are not available without auth token
2025-01-06 16:27:47.214 [error] Error: Failed to get copilot token
at B0._authShowWarnings (c:\Users\shaff.vscode\extensions\github.copilot-chat-0.23.2\dist\extension.js:446:4102)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at B0.getCopilotToken (c:\Users\shaff.vscode\extensions\github.copilot-chat-0.23.2\dist\extension.js:446:2438)
at dF.getCopilotToken (c:\Users\shaff.vscode\extensions\github.copilot-chat-0.23.2\dist\extension.js:334:26267)
at Y0._getAuthSession (c:\Users\shaff.vscode\extensions\github.copilot-chat-0.23.2\dist\extension.js:488:2825)
at r (c:\Users\shaff.vscode\extensions\github.copilot-chat-0.23.2\dist\extension.js:488:2288)
at Y0._registerEmbeddings (c:\Users\shaff.vscode\extensions\github.copilot-chat-0.23.2\dist\extension.js:488:2787)
at async Promise.all (index 1)
at async Promise.allSettled (index 0)
at tB.waitForActivationBlockers (c:\Users\shaff.vscode\extensions\github.copilot-chat-0.23.2\dist\extension.js:334:13668)
at c:\Users\shaff.vscode\extensions\github.copilot-chat-0.23.2\dist\extension.js:2255:4201
at Frr (c:\Users\shaff.vscode\extensions\github.copilot-chat-0.23.2\dist\extension.js:2255:4014)
at K0.n (file:///c:/Users/shaff/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:115:4447)
at K0.m (file:///c:/Users/shaff/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:115:4410)
at K0.l (file:///c:/Users/shaff/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:115:3866)
2025-01-06 16:27:47.214 [info] activationBlocker from 'languageModelAccess' took for 14977ms

Extension version: 0.23.2
VS Code version: Code 1.96.2 (fabdb6a30b49f79a7aba0f2ad9df9b399473380f, 2024-12-19T10:22:47.216Z)
OS version: Windows_NT x64 10.0.19045
Modes:

Prompt Details
Info: Using the Electron fetcher.
Info: Initializing Git extension service.
Info: Successfully activated the vscode.git extension.
Info: Enablement state of the vscode.git extension: true.
Info: Successfully registered Git commit message provider.
Debug: [context keys] Updating context keys.
System Info
Item Value
CPUs Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz (4 x 2496)
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) 7.92GB (1.99GB free)
Process Argv --crash-reporter-id 4ec001c3-e12c-4e6f-80ae-3a75f61aea94
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
vscrp:30673768
a9j8j154:30646983
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupyter:31046869
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc1:31192215
cf971741:31144450
iacca1:31171482
notype1cf:31157160
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624

Metadata

Metadata

Assignees

Labels

info-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions