Not able to sign in to Visual studio with github signin
Am facing an issue when trying to sign in to my new visual studio installation with my github account. The integration between visual studio community edition and github doesnt seem to be working and I am getting this error (there are bunch of errors that keep popping up like this..
An error has occurred in the script on this page
URL: https://github.githubassets.com/assets/environment-bootstrap-0b18da31.js
Do you want to continue running scripts on this page?
after clicking few such popups , i get the login screen of github .. after i enter the username and password, it asks me to authorize microsoft-corp (formatting is malfunctioning in that page, i guess, because of the script misfires).. once i say ok, then i get a Sorry, the server cannot be connected message and the signin doesnt happen.
Could you please check and let me know what is a good solution to get past this issue? thanks
I have the same problem with Visual Studio Community 2019.
I'm also experiencing this issue.
Have the same problem. Did anyone find a solution?
Yes, kind of. VS started prompting me that trial was ended, and i'm still unable to sign in via githubs OAuth, however, after you enter your e-mail address, you are prompted to be redirected to the github OAuth login. DON'T. Instead choose the option to request a single use code to be sent to your e-mail. This way you can avoid the .js errors of logging in via OAuth.
I hope this works as a temporary fix.
Hey.
I tried this but it did not work. My trial has expired but i will try this again.
Thanks for your help
On Mon, 07 Sep 2020, 15:50 Paddy, [email protected] wrote:
Yes, kind of. VS started prompting me that trial was ended, and i'm still unable to sign in via githubs OAuth, however, after you enter your e-mail address, you are prompted to be redirected to the github OAuth login. DON'T. Instead choose the option to request a single use code to be sent to your e-mail. This way you can avoid the .js errors of logging in via OAuth.
I hope this works as a temporary fix.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/github/VisualStudio/issues/2538#issuecomment-688339298, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOTYC6GO32F5GPHTL5B7EUDSETQKRANCNFSM4P7QOUTA .
Thanks paddywaan.
I ended up changing the authentication method in the Microsoft account. That way I was able to bypass the Github SSO and sign in a different way.
Still having the same issue.
I'm also experiencing this issue
This method worked for me: Go to tools, options, choose accounts. On the sign-in options, select to use the option "System web browser" instead of "Embedded web browser" to add and re-authenticate accounts. You can also access this option by selecting account options from the Sign-In / Log-in page. After changing to system browser, try signing up or logging in again. It will redirect you to your desktop web browser from which you can complete your registration.
I have this issue too.
I have it too.
Hi @rub8n,
Do you know if this issue is being tracked on the Microsoft side? It isn't related to the GitHub for Visual Studio extension.
Switching to "System web browser", as BigOine mentioned, also helped me when experiencing this issue
I can't switch browser becase I can't login, because github login in broken.
Can someone take a look at this? 😄
It's still doing this.
Work around: click no on everything and eventually it will let you in.
Same issue. After I login into github (I changed to system browser), it says authorization successful but can't enter.
It's also a little sketch that it uses "Microsoft-corp". It's difficult to verify that this is actually Microsoft.
Using the Connect.. link in the Manage Connection tab works for me

Same issue here.

I was able to resolve this issue by temporarily switching my default browser to Edge - as soon as I did that I was able to sign in
Hope this helps.

As far as July 2021, I experienced this same issue. Though I was able to successfully logging in, after closing those 4 error messages, and providing my user name and password. I use 2FA for GitHub, so I saw those errors twice. After I logged in, I went to the account settings, and I had to "refresh" my credentials to my GitHub account (re-authorize VS2019; or something like that).
Hi everyone!
We encourage everyone to use the integrated add account flow for GitHub which can be accessed from the Account Settings dialog. The account settings dialog can be invoked via the main menu: File > Account Settings...
This option might only be available after you sign in with a work, school or personal account to Visual Studio as Visual Studio currently does not support licensing and other general operations with GitHub accounts.
Here's an example of how it looks and where to find the entry point:

Alternatively, if for whatever reason you need to use the older and unfortunately not well supported "Sign in with GitHub" model (image below), you'll have to switch to the "System Web Browser" per the instructions shared by @9paradox: https://github.com/github/VisualStudio/issues/2538#issuecomment-868322169

Thanks!
I was able to resolve this issue by temporarily switching my default browser to Edge - as soon as I did that I was able to sign in
I switch my default bowser from Edge to Chrome and that allowed me to sign in.
Hi everyone!
We encourage everyone to use the integrated add account flow for GitHub which can be accessed from the Account Settings dialog. The account settings dialog can be invoked via the main menu: File > Account Settings...
This option might only be available after you sign in with a work, school or personal account to Visual Studio as Visual Studio currently does not support licensing and other general operations with GitHub accounts.
Here's an example of how it looks and where to find the entry point:
Alternatively, if for whatever reason you need to use the older and unfortunately not well supported "Sign in with GitHub" model (image below), you'll have to switch to the "System Web Browser" per the instructions shared by @9paradox: #2538 (comment)
Thanks!
It's not working(
@Ahri-ninetailed
Please create a Visual Studio feedback ticket so we can look into it: https://developercommunity.visualstudio.com/report?space=8&q=github&entry=problem
I'm behind a proxy. I try to sign in following this button in the IDE:

When I try to sign in using any of the system web browsers (Chrome, Firefox or Edge), I get this error:

The line in Spanish says something like: "Error while sending the request".

Does anyone know what's the "Device Code" option? By the way, the embedded browser does pop up the sign in window, but I'm not able to make the sing in work, it return different error from some JavaScript code hosted at GitHub. Error are all of the like this one here:

https://github.com/github/VisualStudio/issues/2538#issuecomment-927209433
Hi everyone!
Alternatively, if for whatever reason you need to use the older and unfortunately not well supported "Sign in with GitHub" model (image below), you'll have to switch to the "System Web Browser" per the instructions shared by @9paradox: #2538 (comment)
Thanks!
But "System Web Browser" is not working for me neither.