vscode: github login failed every time

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 (784b0177c56c607789f9638da7b6bf3230d47a8c, 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
Item Value
CPUs Intel® Core™ i5-4590 CPU @ 3.30GHz (4 x 3300)
GPU Status 2d_canvas: enabled
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
Load (avg) undefined
Memory (System) 31.91GB (24.16GB free)
Process Argv –crash-reporter-id a72f7270-60dd-4eec-8d30-1feb1135c48c
Screen Reader no
VM 0%
Item Value
Remote SSH: 阿里云
OS Linux x64 3.10.0-1127.19.1.el7.x86_64
CPUs Intel® Xeon® Platinum 8163 CPU @ 2.50GHz (2 x 2499)
Memory (System) 7.64GB (4.40GB free)
VM 25%
Extensions (11)
Extension Author (truncated) Version
vscode-docker ms- 1.22.1
vscode-language-pack-zh-hans MS- 1.71.9070915
python ms- 2022.14.0
vscode-pylance ms- 2022.9.10
jupyter ms- 2022.8.1002431955
jupyter-keymap ms- 1.0.0
jupyter-renderers ms- 1.0.9
remote-ssh ms- 0.84.0
remote-ssh-edit ms- 0.80.0
remote-wsl ms- 0.66.3
vim vsc 1.23.2
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vsdfh931:30280409
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411cf:30557515
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vscaat:30438848
pylanb8912:30545647
vsclangdf:30486550
c4g48928:30535728
hb751961:30553087
dsvsc012:30540252
azure-dev_surveyone:30548225
i497e931:30553904

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 12
  • Comments: 83 (26 by maintainers)

Most upvoted comments

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.

@everdrone

I finally got to the bottom of this after using the Inspector Dev Tools in VSCode.

It was due to a previous installation of DOCKER which set some Windows System Variables, notably this:

image

And an variable that was setting a 127.0.0.1:XXXX entry (sorry,I did not get a screenshot of that).

I removed both these entries and GitHub was able to authenticate.

So, check your system’s environment variables, especially if you’ve used VM software like Docker! Hope this helps! 🙂

The “same issue” comments… please just use the +1 reaction feature of GitHub. We call this out in our wiki: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions#before-submitting-an-issue

A new version of VS Code will be going out today that has a fix that might help in this space. Can you get it and tell me how it goes?

just tried, nothing changed

Having the same problem on macos 13.3

knock knock

Hi, is there anyone still working on this issue?

@tsgsz let’s try to get you unblocked first… can you open up Windows Credential Manager and go to Windows Credentials image

Then look for any credentials that start with vscode and delete them. Then try logging in again

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.

Very interesting… you see the spinning sign in to github.com... in your status bar… can you click on that and click cancel and then it’ll ask you via a notification if you want to try logging in a different way… can you try that? Let me know if you need a video to understand what I’m talking about.

Already tried so many times, here is the result GIF 2022-10-2 星期日 10-58-25