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

GitHubLoginFailed #3939

Closed
chrmarti opened this issue Jan 11, 2025 · 4 comments
Closed

GitHubLoginFailed #3939

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

Comments

@chrmarti
Copy link

@chrmarti sure thing, thank you

(F1 > Developer: GitHub Copilot Chat Diagnostics)

GitHub Copilot Chat

  • Extension Version: 0.23.2 (prod)
  • VS Code: vscode/1.96.2
  • OS: Linux

Network

User 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:

  • DNS ipv4 Lookup: 20.217.135.0 (8 ms)
  • DNS ipv6 Lookup: Error (13 ms): getaddrinfo ENOTFOUND api.github.com
  • Proxy URL: None (17 ms)
  • Electron fetch (configured): HTTP 200 (179 ms)
  • Node.js https: HTTP 200 (37 ms)
  • Node.js fetch: HTTP 200 (203 ms)
  • Helix fetch: HTTP 200 (124 ms)

Connecting to https://api.githubcopilot.com/_ping:

  • DNS ipv4 Lookup: 140.82.114.22 (7 ms)
  • DNS ipv6 Lookup: Error (8 ms): getaddrinfo ENOTFOUND api.githubcopilot.com
  • Proxy URL: None (2 ms)
  • Electron fetch (configured): HTTP 200 (137 ms)
  • Node.js https: HTTP 200 (424 ms)
  • Node.js fetch: HTTP 200 (441 ms)
  • Helix fetch: HTTP 200 (435 ms)

Documentation

In corporate networks: Troubleshooting firewall settings for GitHub Copilot.

(F1 > Output: Show Output Channels... > GitHub Copilot Chat)

2025-01-11 11:15:51.364 [info] Using the Electron fetcher.
2025-01-11 11:15:51.364 [info] Initializing Git extension service.
2025-01-11 11:15:51.364 [info] Successfully activated the vscode.git extension.
2025-01-11 11:15:51.364 [info] Enablement state of the vscode.git extension: true.
2025-01-11 11:15:51.364 [info] Successfully registered Git commit message provider.
2025-01-11 11:15:52.249 [warning] GitHub login failed
2025-01-11 11:15:52.250 [info] copilot token chat_enabled: undefined, sku: 
2025-01-11 11:15:53.539 [warning] GitHub login failed
2025-01-11 11:15:53.546 [error] Error: GitHubLoginFailed
    at B0._authShowWarnings (/home/user/.vscode/extensions/github.copilot-chat-0.23.2/dist/extension.js:446:3909)
    at B0.getCopilotToken (/home/user/.vscode/extensions/github.copilot-chat-0.23.2/dist/extension.js:446:2438)
    at dF.getCopilotToken (/home/user/.vscode/extensions/github.copilot-chat-0.23.2/dist/extension.js:334:26267)
    at IZ.waitForChatEnabled (/home/user/.vscode/extensions/github.copilot-chat-0.23.2/dist/extension.js:444:13713)
    at IZ.run (/home/user/.vscode/extensions/github.copilot-chat-0.23.2/dist/extension.js:444:13432)
    at w0.askToUpgradeAuthPermissions (/home/user/.vscode/extensions/github.copilot-chat-0.23.2/dist/extension.js:444:12870): Failed to get copilot token
2025-01-11 11:15:53.546 [error] You are not signed in to GitHub. Please sign in to use Copilot.
2025-01-11 11:15:53.546 [warning] [LanguageModelAccess] LanguageModel/Embeddings are not available without auth token
2025-01-11 11:15:53.546 [error] Error: GitHubLoginFailed
    at B0._authShowWarnings (/home/user/.vscode/extensions/github.copilot-chat-0.23.2/dist/extension.js:446:3909)
    at B0.getCopilotToken (/home/user/.vscode/extensions/github.copilot-chat-0.23.2/dist/extension.js:446:2438)
    at dF.getCopilotToken (/home/user/.vscode/extensions/github.copilot-chat-0.23.2/dist/extension.js:334:26267)
    at Y0._getAuthSession (/home/user/.vscode/extensions/github.copilot-chat-0.23.2/dist/extension.js:488:2825)
    at Object.A [as task] (/home/user/.vscode/extensions/github.copilot-chat-0.23.2/dist/extension.js:488:640)
    at xC._processQueue (/home/user/.vscode/extensions/github.copilot-chat-0.23.2/dist/extension.js:487:1101)
2025-01-11 11:15:53.546 [warning] [LanguageModelAccess] LanguageModel/Embeddings are not available without auth token
2025-01-11 11:15:53.546 [error] Error: GitHubLoginFailed
    at B0._authShowWarnings (/home/user/.vscode/extensions/github.copilot-chat-0.23.2/dist/extension.js:446:3909)
    at B0.getCopilotToken (/home/user/.vscode/extensions/github.copilot-chat-0.23.2/dist/extension.js:446:2438)
    at dF.getCopilotToken (/home/user/.vscode/extensions/github.copilot-chat-0.23.2/dist/extension.js:334:26267)
    at Y0._getAuthSession (/home/user/.vscode/extensions/github.copilot-chat-0.23.2/dist/extension.js:488:2825)
    at r (/home/user/.vscode/extensions/github.copilot-chat-0.23.2/dist/extension.js:488:2288)
    at Y0._registerEmbeddings (/home/user/.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 (/home/user/.vscode/extensions/github.copilot-chat-0.23.2/dist/extension.js:334:13668)
    at /home/user/.vscode/extensions/github.copilot-chat-0.23.2/dist/extension.js:2255:4201
    at Frr (/home/user/.vscode/extensions/github.copilot-chat-0.23.2/dist/extension.js:2255:4014)
    at K0.n (file:///usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:115:4447)
    at K0.m (file:///usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:115:4410)
    at K0.l (file:///usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:115:3866)
2025-01-11 11:15:53.546 [info] activationBlocker from 'languageModelAccess' took for 1179ms
2025-01-11 11:15:54.075 [warning] [repo:nvm-sh/nvm] Error fetching code search. Error: bad request: Authorization header is badly formatted
. Retrying in 1ms. Query: text
2025-01-11 11:15:54.313 [warning] [repo:nvm-sh/nvm] Error fetching code search. Error: bad request: Authorization header is badly formatted
. Retrying in 2ms. Query: text
2025-01-11 11:15:54.551 [warning] [repo:nvm-sh/nvm] Error fetching code search. Error: bad request: Authorization header is badly formatted
. Retrying in 3ms. Query: text
2025-01-11 11:15:54.652 [warning] [repo:nvm-sh/nvm] Max Retry Error thrown while querying 'text'
2025-01-11 11:17:10.185 [info] Removed 1 expired certificates

Originally posted by @rgonaute in #3821

@chrmarti
Copy link
Author

@TylerLeonhardt What's a good way to investigate this? Would more logging help?

@TylerLeonhardt
Copy link
Member

Can you follow these steps so that we can get more information on what's going on?

  • Trigger the sign in
  • Wait for the issue to happen...
  • Open the Output pane (ctrl+shift+u)
  • drop in this issue he contents of the following:
    • GitHub Authentication Output channel

@TylerLeonhardt TylerLeonhardt added the info-needed Issue requires more information from poster label Jan 12, 2025
@rgonaute
Copy link

Hi @chrmarti @TylerLeonhardt, unfortunately I can no longer reproduce this issue since it randomly succeeded in connection after a computer reset...

If you'd like I'm fine with uninstalling and retry.

I appreciate your time, either way.

@TylerLeonhardt
Copy link
Member

It's ok. No problem. If the issue comes up again, you know where to find us.

@TylerLeonhardt TylerLeonhardt closed this as not planned Won't fix, can't repro, duplicate, stale Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants