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

Cannot login to Github from settings sync (reason: unable to get local issuer certificate) #178213

Closed
MH-ABE opened this issue Mar 24, 2023 · 2 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@MH-ABE
Copy link

MH-ABE commented Mar 24, 2023

Type: Bug

I am trying to logon to my GitHub account inside VS code, in order to use copilot but I get the errors as below. It works completely fine in the browser. During the logon attempts in VSC it opens the browser 3 times doing different methods, all appears to be successful in the browser. Upon return to VSC it shows as failed.

Settings sync using a Microsoft account however works fine.

I am on a corporate network with self signed certs, this doesn't seem to affect things in the browser as mentioned.
I have installed the win-ca extension, both append and replace modes tested.
"http.proxyStrictSSL": false - tested does not change anything.

GitHub Authentication output:

2023-03-24 10:33:02.101 [info] Logging in for the following scopes: user:email
2023-03-24 10:33:02.116 [info] Trying without local server... (user:email)
2023-03-24 10:33:03.720 [info] Exchanging code for token...
2023-03-24 10:33:03.876 [error] FetchError: request to https://vscode.dev/codeExchangeProxyEndpoints/github/login/oauth/access_token failed, reason: unable to get local issuer certificate
    at ClientRequest.<anonymous> (c:\Users\X\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\github-authentication\dist\extension.js:2:678330)
    at ClientRequest.emit (node:events:526:28)
    at TLSSocket.socketErrorListener (node:_http_client:442:9)
    at TLSSocket.emit (node:events:526:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
2023-03-24 10:33:05.575 [info] Trying with local server... (user:email)
2023-03-24 10:33:06.413 [info] Exchanging code for token...
2023-03-24 10:33:06.595 [error] FetchError: request to https://vscode.dev/codeExchangeProxyEndpoints/github/login/oauth/access_token failed, reason: unable to get local issuer certificate
    at ClientRequest.<anonymous> (c:\Users\X\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\github-authentication\dist\extension.js:2:678330)
    at ClientRequest.emit (node:events:526:28)
    at TLSSocket.socketErrorListener (node:_http_client:442:9)
    at TLSSocket.emit (node:events:526:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
2023-03-24 10:33:18.080 [info] Trying device code flow... (user:email)
2023-03-24 10:33:25.054 [info] Getting user info...
2023-03-24 10:33:25.201 [error] request to https://api.github.com/user failed, reason: unable to get local issuer certificate
2023-03-24 10:33:25.202 [error] Error: network error
    at t.GitHubServer.getUserInfo (c:\Users\X\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\github-authentication\dist\extension.js:2:1019475)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at t.GitHubAuthenticationProvider.o (c:\Users\X\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\github-authentication\dist\extension.js:2:1009733)
    at t.GitHubAuthenticationProvider.createSession (c:\Users\X\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\github-authentication\dist\extension.js:2:1009216)
2023-03-24 10:47:00.039 [info] Getting sessions for all scopes...
2023-03-24 10:47:00.040 [info] Got 0 sessions for ...

VS Code version: Code 1.76.2 (ee2b180, 2023-03-14T17:55:54.936Z)
OS version: Windows_NT x64 10.0.19044
Modes:
Sandboxed: No

Tested also on insiders, clean install no extensions. Also tested with win-ca installed, no change.
Last try shown

2023-03-24 11:29:07.139 [error] request to https://api.github.com/user failed, reason: unable to get local issuer certificate
2023-03-24 11:29:07.140 [error] Error: network error
	at t.GitHubServer.getUserInfo (c:\Users\1820134\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\github-authentication\dist\extension.js:2:1019475)
	at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
	at async t.GitHubAuthenticationProvider.o (c:\Users\1820134\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\github-authentication\dist\extension.js:2:1009733)
	at async t.GitHubAuthenticationProvider.createSession (c:\Users\1820134\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\github-authentication\dist\extension.js:2:1009216)

Version: 1.77.0-insider (user setup)
Commit: c83f54a
Date: 2023-03-24T05:23:09.316Z
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: 10.2.154.26-electron.0
OS: Windows_NT x64 10.0.19044
Sandboxed: Yes

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (8 x 2592)
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) 15.92GB (6.99GB free)
Process Argv --crash-reporter-id 2999eaed-1190-4285-8962-e0b907950ad3
Screen Reader no
VM 0%
Extensions (17)
Extension Author (truncated) Version
vscode-sqlite ale 0.14.1
ruff cha 2023.10.0
githistory don 0.6.20
copilot Git 1.78.9758
flake8 ms- 2023.4.0
isort ms- 2022.8.0
pylint ms- 2023.4.0
python ms- 2023.4.1
vscode-pylance ms- 2023.3.30
jupyter ms- 2023.2.1200692131
jupyter-keymap ms- 1.1.0
jupyter-renderers ms- 1.0.15
vscode-jupyter-cell-tags ms- 0.1.8
vscode-jupyter-slideshow ms- 0.1.5
sqltools mtx 0.27.1
inline-sql-syntax quf 2.16.0
win-ca uko 3.5.0
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
pyindex848:30662994
nodejswelcome1cf:30587006
3biah626:30602489
pyind779:30671433
f6dab269:30613381
vscrp:30673768
pythonsymbol12:30671437
6233i204:30672705
vsccsb:30677849
defaultazurewalk:30687958
pythonms35cf:30686773

@TylerLeonhardt TylerLeonhardt added bug Issue identified by VS Code Team member as probable bug authentication Issues with the Authentication platform labels Mar 25, 2023
@TylerLeonhardt TylerLeonhardt added this to the April 2023 milestone Mar 25, 2023
@TylerLeonhardt TylerLeonhardt removed bug Issue identified by VS Code Team member as probable bug authentication Issues with the Authentication platform labels Mar 25, 2023
@TylerLeonhardt
Copy link
Member

/duplicate #111824

@TylerLeonhardt TylerLeonhardt removed this from the April 2023 milestone Mar 25, 2023
@VSCodeTriageBot VSCodeTriageBot added the *duplicate Issue identified as a duplicate of another issue(s) label Mar 25, 2023
@VSCodeTriageBot
Copy link
Collaborator

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

Happy Coding!

@VSCodeTriageBot VSCodeTriageBot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 25, 2023
@github-actions github-actions bot locked and limited conversation to collaborators May 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

3 participants