-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
github login failed every time #160649
Comments
And I have tried win11, win10, MACOS, also with proxy or not with proxy, nothing helped |
Any update ? |
Sorry could you attach a video or a gif? That would really help me understand what you're seeing. /gifPlease |
Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, If the issue depends on keyboard input, you can help us by enabling screencast mode for the recording ( Happy coding! |
How do I make y'all stop sending me emails. I don't even do git hub
…On Fri, Sep 16, 2022, 10:28 PM VSCode Triage Bot ***@***.***> wrote:
Thanks for reporting this issue! Unfortunately, it's hard for us to
understand what issue you're seeing. Please help us out by providing a
screen recording showing exactly what isn't working as expected. While we
can work with most standard formats, .gif files are preferred as they are
displayed inline on GitHub. You may find https://gifcap.dev helpful as a
browser-based gif recording tool.
If the issue depends on keyboard input, you can help us by enabling
screencast mode for the recording (Developer: Toggle Screencast Mode in
the command palette).
Happy coding!
—
Reply to this email directly, view it on GitHub
<#160649 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXGLKFLPWU64DHSPYDGR2A3V6U3FTANCNFSM6AAAAAAQJZIYBE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Very interesting... you see the spinning |
|
Hi, any update? This problem keeps me can't use the codepolit actually, and I really really want to try... |
Hi, is there any update? |
@tsgsz let's try to get you unblocked first... can you open up Windows Credential Manager and go to Windows Credentials Then look for any credentials that start with |
There is no credentials that start with vscode, I delete all of the rest credentials and loggin again, the result is all the same. I really don't think it's the credential problem, because couple of days ago, I try it in my mac, didn't work either, and my windows also resinstalled once, nerver work. |
Let's see if this is a keytar issue then... first log in in vscode (even though it fails) if you have nodejs installed, you can run this simple one-liner to see if the problem is how your keychain is setup:
or if you're on Insiders:
This is using the following open source package: https://github.com/emacs-grammarly/keytar-cli What you should get is something like this: [
{
account: 'github.auth',
password: '....... longggg string ......'
}
]
Additionally, we can see if we can properly set passwords:
and then
should give us that newly created password. |
and I manually set vscodevscode.github-authentication using the set-pass command, the output keytar is ok, just vsocde still can't login |
My friend, any clue? |
Hi, is there anyone still working on this issue? |
I just got back from vacation and am juggling multiple items. This issue hasn't been forgotten |
thanks |
@tsgsz can you run these two lines in PowerShell and tell me what you get?
They will fail, but I want to make sure you at least get a response from the server |
result as follow: the text version:
Invoke-RestMethod : bad_verification_code: The code passed is incorrect or expired. (https://docs.github.com/apps/managing-oauth-apps/troubleshooting-oauth-app-access-token-request-errors/#bad-verification-code)
|
knock knock |
Believe it or not, but I was on another vacation. I'm back now... til the holidays... so hopefully we can make some progress here. It's good that PowerShell was able to make a request to these urls... that's worth something. Though, to be honest, I'm not sure why VS Code would be having trouble here. Do you have any proxies applied to your machine by your organization? One thing we could try... have you used Fiddler before? Fiddler can be used to see if the request to |
Not sure about all of your issues exactly, what solved my issue was adding "http.proxySupport": "off" to vs code settings I believe for extensions. |
I did this, succeed, thanks |
same issue on mac |
also succeed on windows. I think this is the anwser @TylerLeonhardt |
@tsgsz I'm so glad! I've felt really bad that we haven't made much progress before. This is an eye opening discovery! |
@tsgsz do you have a corporate proxy applied on these machines? |
I don't think so, the system variable is empty, and a new mac also has the problem. |
Having the same problem on macos 13.3 |
Can you try out @chrmarti's Proxy debugging extension here: microsoft/vscode-remote-release#8248 (comment) and let me know how it goes? |
I guess that it maybe dns pollution, can you try to write the ip into the hosts file? |
Try going to settings/Application/Proxy: Http: Proxy Strict SSL
Uncheck that box! You can see that expired certificates can lead to this problem in this thread: #97434 |
This solved for me as well. However @TylerLeonhardt, will we have any problem to turn-off |
@chrmarti is the best person to answer that. |
You won't see any issues if you are not behind a network proxy. This still suggests that there is a bug on our side. Could you install the Network Proxy Test extension (https://marketplace.visualstudio.com/items?itemName=chrmarti.network-proxy-test) and check the output of |
@chrmarti You want me to send the output of the above run with or without |
@sumanth-lingappa Without |
Note: Make sure to replace all sensitive information with dummy values before sharing this output.
VS Code 1.77.3 (704ed70d4fd1c6bd6342c436f1ede30d1cff4710)
Network Proxy Test 0.0.6
darwin 22.1.0 x64
Settings:
- http.proxy:
- http.proxyAuthorization: null
- http.proxyStrictSSL: true
- http.proxySupport: override
- http.systemCertificates: true
Environment variables:
Sending GET request to https://example.com...
vscode-proxy-agent: PROXY 127.0.0.1:8009
Received error: certificate has expired (CERT_HAS_EXPIRED)
Retrying while ignoring certificate issues to collect information on the certificate chain.
Sending GET request to https://example.com (allowing unauthorized)...
vscode-proxy-agent: PROXY 127.0.0.1:8009
Received response:
- Status: 200 OK
Certificate chain:
- Subject: www.example.org (Internet Corporation for Assigned Names and Numbers)
Subject alt: DNS:www.example.org, DNS:example.net, DNS:example.edu, DNS:example.com, DNS:example.org, DNS:www.example.com, DNS:www.example.edu, DNS:www.example.net
Validity: Jan 13 00:00:00 2023 GMT - Feb 13 23:59:59 2024 GMT
Fingerprint: 80:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:44
- Subject: Network Security (iboss Network Security)
Validity: Nov 23 06:51:30 2022 GMT - Dec 25 06:51:30 2023 GMT
Fingerprint: 23:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:FA
Self-signed |
@sumanth-lingappa There is a proxy configured in your OS running on your local machine at 127.0.0.1:8009. It issues its own certificates and has the CA certificate "Network Security (iboss Network Security)" registered in your OS as a root certificate. That root certificate has expired and is causing the request to fail. You could uninstall that proxy or update its root certificate in your OS if you want to keep it running. |
@sumanth-lingappa Does searching for extensions in VS Code's Extensions viewlet work? I would expect that to use the OS setting and fail too ( |
@sumanth-lingappa I misread the end date of the "Network Security (iboss Network Security)" certificate. It has not expired, but the first connection attempt failed with "certificate has expired". Not sure which certificate has expired. Is your system's clock set correctly (taking a guess)? |
@chrmarti, yes the system clock is correct. |
@sumanth-lingappa Could you use |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
Type: Bug
The login step in browser is good, and successfull, but when redirect to vscode, vscode can also recive the redirect request, because it will pop up a window to ask me if allow it, but after that, it stuck until timeout
VS Code version: Code 1.71.0 (784b017, 2022-09-01T07:36:10.600Z)
OS version: Windows_NT x64 10.0.22000
Modes:
Sandboxed: No
Remote OS version: Linux x64 3.10.0-1127.19.1.el7.x86_64
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Extensions (11)
A/B Experiments
The text was updated successfully, but these errors were encountered: