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

Unable to log in to Microsoft or GitHub Account in mainland China #149538

Closed
guoidou opened this issue May 14, 2022 · 31 comments
Closed

Unable to log in to Microsoft or GitHub Account in mainland China #149538

guoidou opened this issue May 14, 2022 · 31 comments
Assignees
Labels
authentication Issues with the Authentication platform bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@guoidou
Copy link

guoidou commented May 14, 2022

When using the Microsoft account synchronization function, there is a problem with the login, and the data synchronization cannot be performed normally by jumping to vs code.

After the browser login is successful, the redirection fails, the information is as follows

image

@guoidou
Copy link
Author

guoidou commented May 14, 2022

And this

image

@seanbonjean
Copy link

the same problem occurred to my machine, both my Microsoft account and GitHub account have this problem

This was referenced May 25, 2022
@TylerLeonhardt TylerLeonhardt changed the title Unable to log in to Microsoft Account Sync Unable to log in to Microsoft or GitHub Account May 25, 2022
@TylerLeonhardt TylerLeonhardt changed the title Unable to log in to Microsoft or GitHub Account Unable to log in to Microsoft or GitHub Account in mainland China May 25, 2022
@TylerLeonhardt
Copy link
Member

So it appears that vscode.dev is blocked in China? Does the same apply to github.dev? Can someone check for me (go to github.dev/microsoft/vscode)?

@JoshuaLiew
Copy link

JoshuaLiew commented May 25, 2022

So it appears that vscode.dev is blocked in China? Does the same apply to github.dev? Can someone check for me (go to github.dev/microsoft/vscode)?

However, I can log in successfully with the Microsoft account using the old version

@JoshuaLiew
Copy link

github.dev/microsoft/vscode

image

@CodeZhangBorui
Copy link

CodeZhangBorui commented May 25, 2022

So it appears that vscode.dev is blocked in China? Does the same apply to github.dev? Can someone check for me (go to github.dev/microsoft/vscode)?

Yes, github.dev can't log in to Microsoft, too. This is screenshot:

image

@CodeZhangBorui
Copy link

github.dev isn't blocked now. But because vscode.dev is blocked, Github Web Editor unable to log in to Microsoft, too.

@Winzler-Botawar
Copy link

Same question, it doesn't work too while opening VPN and switch to other areas.

@wenda84
Copy link

wenda84 commented Jun 1, 2022

I have meet this problem on my home computer but not the company's. My home and company are on the same broadband carrier(China Telecom).

@TylerLeonhardt
Copy link
Member

TylerLeonhardt commented Jun 1, 2022

Thanks for all the info so far, I want to narrow down what works and what doesn't. Can you all give this a try?

  1. Go to https://insiders.vscode.dev
  2. if it does not resolve, add a screenshot to this issue with the error
  3. If it resolves, Sign in to Settings Sync (the little person icon above the gear)
  4. Report back if that works or not. If it does not, tell me where you get stuck
  5. Go to https://vscode.dev
  6. if it does not resolve, add a screenshot to this issue with the error
  7. If it resolves, Sign in to Settings Sync (the little person icon above the gear)
  8. Report back if that works or not. If it does not, tell me where you get stuck

If you get stuck in steps 1 through 4, please also try steps 5 through 8.

@wenda84
Copy link

wenda84 commented Jun 1, 2022

i get stuck at the step 4 . Shows a phenomenon similar to the above
Snipaste_2022-06-01_23-44-06

@TylerLeonhardt
Copy link
Member

TylerLeonhardt commented Jun 1, 2022

Thanks @wenda84, can you also start at Step 5 and see how 5-8 go?

@seanbonjean
Copy link

the insider version is working, but vscode.dev isn't
image
image

@seanbonjean
Copy link

and when I try to sign in using the insider version, the same error occurred
image

@wenda84
Copy link

wenda84 commented Jun 1, 2022

Thanks @wenda84, can you also start at Step 5 and see have 5-8 go?

emm, i can not open https://vscode.dev/, but i can ping it. And I also tried use a proxy software, it helps me vist Github faster, but it didn't help to VSCode login.

step_5
ping

@seanbonjean
Copy link

but I cannot ping vscode.dev
image

@seanbonjean
Copy link

seanbonjean commented Jun 1, 2022

but I cannot ping vscode.dev image

sry I cannot change the PowerShell language due to windows setting limit, in English it means ping cannot find host vscode.dev

@yume-chan
Copy link
Contributor

image

Online testing tool shows ISP DNS servers in many regions resolve vscode.dev to 127.0.0.1. Some other regions have a seemingly correct IP, but still can't establish TCP connections to it.

@wenda84
Copy link

wenda84 commented Jun 3, 2022

I solved the problem by modifying the local DNS settings.
国内的兄弟们试下修改本地DNS服务器为114.114.114.114,我改了就好了。 电信自带的不知道什么垃圾DNS。

@CodeZhangBorui
Copy link

CodeZhangBorui commented Jun 5, 2022

You can use Edge Addon Malus VPN to connect to Chinese Network. Remember to open Global Mode(全局模式)to let all the website use Chinese Network.

@GeekYang1993
Copy link

I solved the problem by modifying the local DNS settings. 国内的兄弟们试下修改本地DNS服务器为114.114.114.114,我改了就好了。 电信自带的不知道什么垃圾DNS。

我改了DNS服务器没有解决还是一样登录不了

@GeekYang1993
Copy link

Please tell me how to solve the problem. I also encountered the same problem. Changing the DNS server to 114.114.114.114 cannot be solved

@GeekYang1993
Copy link

I have solved this problem. The operation method is as follows:

  1. Modify DNS server to 114.114.114.114

  2. Open CMD and enter ipconfig /flushdns to refresh DNS cache

  3. Reopen vscode and log in using Microsoft or GitHub

Users in Chinese Mainland can try this method

@TylerLeonhardt
Copy link
Member

Just to let everyone know, we are actively working on this. I can't provide too many updates as I have requested assistance from a team at Microsoft who is better suited to fix this problem, but I will ensure it is looked at and provide as many updates as I possibly can.

@summerBreeze03
Copy link

I have solved this problem. The operation method is as follows:

  1. Modify DNS server to 114.114.114.114
  2. Open CMD and enter ipconfig /flushdns to refresh DNS cache
  3. Reopen vscode and log in using Microsoft or GitHub

Users in Chinese Mainland can try this method

it does work!thank you very much!
感谢指点迷津,折腾好久了

@GeekYang1993
Copy link

The method of modifying the DNS server and refreshing the cache may not be 100% successful. I found that after successful login, the login will still fail if I log off.
通过修改DNS服务器并刷新缓存的方法不一定100%成功,我发现成功登录以后如果注销在登录也还是会失败。

@tsenghaipo
Copy link

I solved the problem by modifying the local DNS settings. 国内的兄弟们试下修改本地DNS服务器为114.114.114.114,我改了就好了。 电信自带的不知道什么垃圾DNS。

+1 居然成功了

@TylerLeonhardt TylerLeonhardt modified the milestones: June 2022, July 2022 Jun 27, 2022
@TylerLeonhardt
Copy link
Member

TylerLeonhardt commented Jun 29, 2022

Hi all, we have done some work to get vscode.dev unblocked. Our tools say that 90% of China should be able to access the site now... Slowly increasing every day. Can you all give it a try again?

@CodeZhangBorui
Copy link

CodeZhangBorui commented Jun 29, 2022

It works! I’m in Shandong, China, using China Unicom Network. Thanks a lot!

@CodeZhangBorui
Copy link

CodeZhangBorui commented Jun 29, 2022

image
It works on China Educational Network (be used in Chinese Schools), too. And it has Chinese translation now!

@TylerLeonhardt
Copy link
Member

I believe we have "fixed" the problem at this point. It may take a little bit more time in some locations as this new policy propagates across China but I don't believe there's any more action on our part on the VS Code team so I'm going to close this as fixed.

Let us know if you're still having this issue and if you are, what your internet provider is and what region of China you are in.

@TylerLeonhardt TylerLeonhardt added the verified Verification succeeded label Jun 30, 2022
@TylerLeonhardt TylerLeonhardt modified the milestones: July 2022, June 2022 Jun 30, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Aug 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
authentication Issues with the Authentication platform bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

No branches or pull requests