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 2019 Cannot log into GitHub #2566

Open
ttaylor29 opened this issue Nov 18, 2020 · 5 comments
Open

VS 2019 Cannot log into GitHub #2566

ttaylor29 opened this issue Nov 18, 2020 · 5 comments

Comments

@ttaylor29
Copy link

@ttaylor29 ttaylor29 commented Nov 18, 2020

Microsoft Visual Studio Professional 2019
Version 16.8.1

I cannot log into github via VS2019 Professional.

I tried Edge and Chrome.

I've had this issue before: #2509

Nothing that I posted or anyone else posted has worked.

I start here after I log out of github.com with my default browser

image

Then I see this screen:

image

I log in with my proper credentials and it redirects me to this:

https://localhost:42549/?browser_session_id=555e66a9ec8daa42eea03b1037941114f832ccc9b294bc6a1d60c3a602df3dac&code=206fb75efb523c318ab9&state=7724d9a4-7594-4123-9ee8-80c4bf6b0f82

I've started VS with admin rights, I've deleted all of my personal tokens, rebooted, uninstalled the local extension, logged in via the VS direct way instead of the extension, EVERYTHING!

So right now, I can't use my github repos!

Error in extension: C:\Users\username\AppData\Local\GitHubVisualStudio

2020-11-17 23:36:07.419 [16836] EROR [44] GitHubServiceProvider Error loading GitHub.Services.IConnectionManager
System.InvalidOperationException: Due to high risk of deadlock you cannot call GetService from a background thread in an AsyncPackage derived class. You should instead call GetServiceAsync (without calling Result or Wait on the resultant Task object) or switch to the UI thread with the JoinableTaskFactory.SwitchToMainThreadAsync method before calling GetService.
at Microsoft.VisualStudio.Shell.AsyncPackage.GetService(Type serviceType)
at Microsoft.VisualStudio.Shell.Package.System.IServiceProvider.GetService(Type serviceType)
at GitHub.VisualStudio.GitHubServiceProvider.TryGetService(Type serviceType)

So it is what I saw from the previous issue in May, but nothing will work now!

Please help!

@ttaylor29
Copy link
Author

@ttaylor29 ttaylor29 commented Nov 18, 2020

I changed my default browser to FireFox and everything started working and it would let me sign in successfully!

Can anyone create this issue with Chrome / Edge and try FireFox?

@jcansdale
Copy link
Collaborator

@jcansdale jcansdale commented Nov 18, 2020

Hi @ttaylor29 👋

It's really strange that it works with FireFox but not Chrome or Edge!

Is there an HTTP proxy between you and GitHub? Do you use a personal firewall or other security software?

Thanks!

@ttaylor29
Copy link
Author

@ttaylor29 ttaylor29 commented Nov 18, 2020

@jcansdale I was on my work computer when this occurred. Maybe they are blocking something? I can try later today maybe on my personal desktop!

@ttaylor29
Copy link
Author

@ttaylor29 ttaylor29 commented Nov 19, 2020

@jcansdale It works without any issues period on my personal desktop!

I'll try again on my work laptop and let you know. I can try the item from the other issue: #2527 (comment)

@ttaylor29
Copy link
Author

@ttaylor29 ttaylor29 commented Nov 19, 2020

Reference this for the answer:

It has to do with my work laptop and HSTS policies (it appears).

#2527 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.