vscode-pull-request-github icon indicating copy to clipboard operation
vscode-pull-request-github copied to clipboard

Sign In gives generic error message

Open billyjbryant opened this issue 3 years ago • 10 comments

I am using VSCodium and have an entirely different (but similar in nature) issue with sign-in. When I click the "Sign-in" button in the extension, I get an error dialog :

image

  • Extension version: v0.48.1
  • VSCode Version: (VSCodium) 1.70.2 Release: 22230
  • OS: macOS Monterey Version 12.5.1

VSCodium Info

Version: 1.70.2
Release: 22230
Commit: 6c122d9b2d1af2c37bd55caad614321eb53b342f
Date: 2022-08-18T04:12:18.598Z
Electron: 18.3.5
Chromium: 100.0.4896.160
Node.js: 16.13.2
V8: 10.0.139.17-electron.0
OS: Darwin arm64 21.6.0

Steps to Reproduce:

  1. Open the GitHub Tab and click Signin
  2. Get error message

Extension Logs: 7-GitHub Pull Request.log

[Info] Error signing in to GitHub: HttpError: Bad credentials
[Info] HttpError: Bad credentials
	at /Users/billybryant/.vscode-oss/extensions/github.vscode-pull-request-github-0.48.1/dist/extension.js:1131:6173
	at processTicksAndRejections (node:internal/process/task_queues:96:5)
	at async S1.setCurrentUser (/Users/billybryant/.vscode-oss/extensions/github.vscode-pull-request-github-0.48.1/dist/extension.js:1148:16819)
	at async S1.createHub (/Users/billybryant/.vscode-oss/extensions/github.vscode-pull-request-github-0.48.1/dist/extension.js:1148:18000)
	at async S1.login (/Users/billybryant/.vscode-oss/extensions/github.vscode-pull-request-github-0.48.1/dist/extension.js:1148:15989)
	at async Sm.authenticate (/Users/billybryant/.vscode-oss/extensions/github.vscode-pull-request-github-0.48.1/dist/extension.js:1266:18461)
	at async /Users/billybryant/.vscode-oss/extensions/github.vscode-pull-request-github-0.48.1/dist/extension.js:1266:6905
	at async a._executeContributedCommand (/Applications/VSCodium.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:85:63914)

billyjbryant avatar Aug 24 '22 19:08 billyjbryant

@TylerLeonhardt we also saw this with on @joaomoreno machine with VS Code. A log out and log back in solved it.

alexr00 avatar Sep 01 '22 10:09 alexr00

@billyjbryant can you provide the contents of the GitHub Authentication output pane: image

And also anything that shows up in Dev Tools:

  • ctrl + shift + P
  • "Dev Tools"

TylerLeonhardt avatar Sep 01 '22 13:09 TylerLeonhardt

I've hit this now too. The error doesn't occur when calling the auth extension API. Instead, it happens when I try to use the auth token returned from the API to use GitHub API. It seems like the token is no longer valid.

There is nothing useful in the dev tools.

Here's the output, cleared just before the auth call:

[Info  - 12:19:16.240] Getting sessions for read:user,repo,user:email,workflow...
[Info  - 12:19:16.241] Got 1 sessions for read:user,repo,user:email,workflow...

alexr00 avatar Sep 08 '22 12:09 alexr00

I'm also seeing this error. Everything used to work until today, I cannot sign in to GitHub anymore. Before this error, I saw some message about some rate limit exceeded, but I cannot reproduce it.

cbrnr avatar Sep 12 '22 14:09 cbrnr

@cbrnr can you please share a gif/video of you logging in? you can use a tool like https://gifcap.dev to do this.

TylerLeonhardt avatar Sep 12 '22 19:09 TylerLeonhardt

Thanks for the quick response! Today the extension is working again. It seems like yesterday there were some server issues, which would explain the rate limit message and failed login attempts. Maybe @billyjbryant and @alexr00 can check if the issue has resolved itself for them as well?

cbrnr avatar Sep 13 '22 06:09 cbrnr

Today, the issue came back. First, I got that rate limit exceeded message, and after that I cannot log in:

https://user-images.githubusercontent.com/4377312/190321866-9f838997-d394-410f-af44-ec260aa3e34a.mov

cbrnr avatar Sep 15 '22 05:09 cbrnr

@cbrnr where you opening lots of windows or reloading the window a lot before you saw the rate limit error? We shouldn't be hitting that rate limit, but once it's hit you can't sign in.

alexr00 avatar Sep 15 '22 09:09 alexr00

I don't think so - at least not on purpose. FWIW, I never shut down my computer, so maybe some connections do not get reset? I do restart VS Code quite often though, and I tried in this case, but it didn't help. I am now signed in again, this seems to have happened automatically at some point.

cbrnr avatar Sep 15 '22 10:09 cbrnr

@cbrnr I added a lot of rate limit logging in the pre-release version of the extension. If you see the rate limit error again, could you please share the output of "GitHub Pull Request" over in https://github.com/microsoft/vscode-pull-request-github/issues/3847?

alexr00 avatar Sep 19 '22 12:09 alexr00

The rate limit issue has been fixed. We don't have enough info continue investigating the bad credentials issue.

alexr00 avatar Dec 09 '22 10:12 alexr00