Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
unable to connect to GitHub using visual studio 2019 #2527
Comments
|
Note: Adding this comment here to provide more information (as already added into #2509 ) Hi Team, Even I am facing this issue with GitHub extension with Visual Studio 2019. I have tried the above workarounds (uninstalling/reverting to previous version etc.) but no luck. I am able to sign-in successfully to GitHub on my browser but through extension, when I click on 'Sign in with your browser' option, it opens the browser with the below URL and it just keeps loading: Below is the error captured from Github Extension log:
|
|
I have the same problem, Logs here Solution worked for me
|
|
@cyounes was able to resolve this by opening Visual Studio as Administrator before logging in, see #2550 (comment) Any chance you could give this a try? |
|
I'm still facing this issue. Tried most of the suggestions mentioned here. |
|
@mohan023, I'm sorry this didn't fix it. Thanks for trying! |
|
Hi @mohan023 (and @techduggu), I think the issue you've been seeing might be this #2560 (reported by @osmanager). I've opened a PR that I hope will resolve the problem here #2562. Could you try installing the artifact from this build: You can find it here: After opening and installing the VSIX, can you let me know if it works any better? Any help confirming this fix would be much appreciated! |
|
@jcansdale I have the same issue as Mohan023 and techduggu. I tried using the link you provided, |
|
Hi @BHinrichs1966, Could you try installing the artifact from this link? |
Yes, that could be causing this to fail. I'll let you know when this fix has been confirmed and a new version has been pushed to production! |
|
Do we have anyone who is not facing this issue anymore? |
|
@mohan023 I'm seeing this again :/ |
|
Any chance you could try the VSIX artifact from this build? |
|
@jcansdale Will this work if I just want normal GitHub and not the GitHub Enterprise Server? |
|
If there is an HTTP proxy between you and GitHub, it could make a difference. I'm interested to find out! |
|
@jcansdale I'll try this in a bit at lunch if I can! |
|
@jcansdale How do I implement this? Any chance you could try the VSIX artifact from this build? FYI, I just tried it again with Chrome and it fails ; FireFox still works on my work laptop. |
Never mind, I found the artifact folder with the GitHub.VisualStudio.vsix |
|
@jcansdale It still failed :-(
Then this shows up: |
|
I might have found it. put this into Chrome address bar: chrome://net-internals/#hsts Then go to the bottom and delete localhost from the Delete domain security policies Then try to sign into GitHub via VS2019 and it worked!!! Chrome and Edge are chromium underneath the hood, so that is why it is happening on both! I think my work puts these settings on from the group policy. I have to do this with using IIS local to run my web application sometimes. |
|
@ttaylor29 I'm glad you figured it out! I wonder if it treats |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.





Below is what I got in logs.
Octokit.AuthorizationException: Must authenticate to access this API.
at Octokit.Connection.HandleErrors(IResponse response)
at Octokit.Connection.d__58.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Octokit.Connection.d__57
1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Octokit.ApiConnection.<Put>d__261.MoveNext()--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at GitHub.Api.LoginManager.d__18.MoveNext() in D:\a\VisualStudio\VisualStudio\src\GitHub.Api\LoginManager.cs:line 220
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at GitHub.Api.LoginManager.d__13.MoveNext() in D:\a\VisualStudio\VisualStudio\src\GitHub.Api\LoginManager.cs:line 102
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at GitHub.Api.LoginManager.d__13.MoveNext() in D:\a\VisualStudio\VisualStudio\src\GitHub.Api\LoginManager.cs:line 125
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at GitHub.VisualStudio.ConnectionManager.d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at GitHub.ViewModels.Dialog.LoginTabViewModel.d__55.MoveNext() in D:\a\VisualStudio\VisualStudio\src\GitHub.App\ViewModels\Dialog\LoginTabViewModel.cs:line 159
{"message":"Must authenticate to access this API.","documentation_url":"https://developer.github.com/enterprise/2.19/v3"}
The text was updated successfully, but these errors were encountered: