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

Cancelled Github Authentication #147601

Closed
aazsamir opened this issue Apr 17, 2022 · 5 comments
Closed

Cancelled Github Authentication #147601

aazsamir opened this issue Apr 17, 2022 · 5 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@aazsamir
Copy link

  • VS Code Version: 1.66.2
  • OS Version: Linux x64 5.17.1-3 MANJARO snap

Steps to Reproduce:

  1. When I'm trying to connect with my github account (sync settings, or for extensions), my output on GitHub Authentication tab is

[Info - 17:13:04.178] Reading sessions from keychain...
[Info - 17:13:04.204] Getting sessions for user:email...
[Info - 17:13:04.220] Getting sessions for all scopes...
[Info - 17:13:04.665] Getting sessions for read:user,repo,user:email...
[Error - 17:13:04.667] Getting token failed: Error: Input is not valid base64-encoded data.
[Info - 17:13:04.667] Got 0 sessions for user:email...
[Info - 17:13:04.667] Got 0 sessions for ...
[Info - 17:13:04.667] Got 0 sessions for read:user,repo,user:email...
[Info - 17:13:05.752] Getting sessions for all scopes...
[Info - 17:13:05.753] Got 0 sessions for ...
[Info - 17:13:05.803] Getting sessions for read:user...
[Info - 17:13:05.803] Got 0 sessions for read:user...
[Info - 17:13:06.91] Getting sessions for read:user,repo,user:email...
[Info - 17:13:06.91] Got 0 sessions for read:user,repo,user:email...
[Info - 17:13:06.238] Getting sessions for read:user,repo,user:email...
[Info - 17:13:06.238] Got 0 sessions for read:user,repo,user:email...

  1. I had VSCode version 1.66.0 on my laptop, and github authentication was working fine (same OS). After update to 1.66.2 there is same problem. On my main machine I reverted snap package to 1.66.1, and still not working, so I assume that problem have started with 1.66.1 update.

  2. Have tried Insiders version, but without success. I Also have windows 10 on dualboot, and it's working fine there.

@TylerLeonhardt
Copy link
Member

I actually included some fixes in this area very recently. They're currently only available in the Insider build of VS Code right now which you can get here: https://code.visualstudio.com/insiders

This is also available as a snap here: https://snapcraft.io/code-insiders

In short, if we detect that you are having trouble logging in, we show you a notification to try a different way to log in... and if that doesn't work we try yet another way.

@TylerLeonhardt TylerLeonhardt added the info-needed Issue requires more information from poster label Apr 18, 2022
@aazsamir
Copy link
Author

I have updated vscode to 1.67.0-insider, github authentication is working fine now at second attempt, but it's kinda slow, and having option to not to ask, but always try second method (or force it as first) would be nice.
Solved, thanks.

@deepak1556
Copy link
Collaborator

Related to #147515

@Aire-One
Copy link

Hello,

I also experiment a similar issue with VSCode on Arch Linux. The funny thing is that on my computer, the GitHub authentication from Firefox opened a new tab on VSCode with the activation link URL.

Here is my VSCode version:

Version: 1.66.2
Commit: dfd34e8260c270da74b5c2d86d61aee4b6d56977
Date: 2022-04-11T07:49:24.808Z
Electron: 17.2.0
Chromium: 98.0.4758.109
Node.js: 16.13.0
V8: 9.8.177.11-electron.0
OS: Linux x64 5.17.0-arch1-1

As hinted by @TylerLeonhardt, I tried with VSCode-insider, and it successfully worked!
Thanks for pointing out this working method to activate Copilot on my computer.
Do you happen to know how long until the fix land in the regular version of VSCode, @TylerLeonhardt?

Just in case, here is my VSCode-insider version:

Version: 1.67.0-insider
Commit: ab86e0229d6b4d0cb49cfd6747c92cafcd2bd4af
Date: 2022-04-26T05:16:02.333Z
Electron: 17.4.1
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: 9.8.177.13-electron.0
OS: Linux x64 5.17.0-arch1-1

@TylerLeonhardt
Copy link
Member

Do you happen to know how long until the fix land in the regular version of VSCode, @TylerLeonhardt?

Next week. Wednesday or Thursday most likely.

@github-actions github-actions bot locked and limited conversation to collaborators Jun 3, 2022
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

4 participants