vscode-pull-request-github icon indicating copy to clipboard operation
vscode-pull-request-github copied to clipboard

Repeatedly asked to sign in again using GitHub

Open wagnerone opened this issue 4 years ago • 23 comments

Issue Type: Bug

The extension 'GitHub Pull Requests and Issues' wants you to sign in again using GitHub.

This began happening to me last week or so. I'm repeatedly asked to sign in again using GitHub. When this happens the extension becomes unresponsive until I do and even when I do it seems to act halteningly. It'll ask me 1-2 times every so often and then other times it'll ask me 20 times in a row.

I've tried various troubleshooting found here and there with no luck, so I'm reporting it.

I tried reinstalling the extension, cleaning up my settings.json related to this extension, switching from prerelease to stable for the extension, etc.

It got bad enough this past Friday that my API quota for GitHub was exceeded and I had to wait an hour until I could continue testing/working.

Extension version: 0.38.1 VS Code version: Code - Insiders 1.66.0-insider (79d9bb8754331225372e892393619d4072474a19, 2022-03-15T05:18:53.058Z) OS version: Darwin arm64 21.3.0 Restricted Mode: No

System Info
Item Value
CPUs Apple M1 Pro (10 x 24)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 9, 10, 10
Memory (System) 32.00GB (0.23GB free)
Process Argv --crash-reporter-id 212a1510-41cd-4257-9265-09b65bc1f6a6
Screen Reader no
VM 0%
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30422396
pythontb:30258533
pythonptprofiler:30281269
vshan820:30294714
pythondataviewer:30285072
vscod805cf:30301675
pythonvspyt200:30323110
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30404738
wslgetstarted:30449409
vsclayoutctrt:30405800
dsvsc009:30440021
pythonvspyt640:30438691
vscscmwlcmc:30428972
vscgsvidc:30433759
dockersurvey3:30438168
pynewfile477:30451556

wagnerone avatar Mar 15 '22 15:03 wagnerone

Same here!

Extension version: 0.38.1

VS Code:

Version: 1.65.2 (user setup)
Commit: c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1
Date: 2022-03-10T14:33:55.248Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.22000

MoltenCoffee avatar Mar 16 '22 08:03 MoltenCoffee

I enabled debug and see lots of these lines repeated. Seems like I have some rate limit of 5000 request per some period of time and this extension is consuming all 5000 during the course of my work day. When it gets to 0 it tries to re-auth repeatedly every time it checks for PR changes, etc.

[Debug 1647631207.36s] Authentication> No GitHub token found.

[Debug 1647631207.494s] GithubRepository> Unable to fetch issues without milestone: Error: Network error: Response not successful: Received status code 403

[Debug 1647630957.379s] GithubRepository> Unable to fetch issues without milestone: Error: GraphQL error: API rate limit exceeded for user ID 6237466.

wagnerone avatar Mar 18 '22 19:03 wagnerone

I reverted the change that prompted for sign-in when the rate limit is hit. The change will be available in the pre-release build tomorrow.

Next time you hit the rate limit, could you share the output of "GitHub Pull Request"? We shouldn't be doing something that causes the rate limit to be hit.

alexr00 avatar Mar 21 '22 13:03 alexr00

Thanks! I hit the limit right when I began working this morning.

This morning my "GitHub Pull Request" is 111035 lines and has a lot of potentially sensitive info in it.

Is there a way to scrub it and/or a way to share it privately?

I'm attaching a few sections without any personal info that just reflect it's hitting initial and secondary rate limits.

When it does this it starts asking me to log in again. I'm not sure if repeatedly for a single repo or for the entire series of repos in the workspace.

github-pull-request-debug.txt

wagnerone avatar Mar 21 '22 14:03 wagnerone

Short of scrubbing it manually, I don't have a good way to scrub it. If you want to share it privately, you can send it to the email address listed in my profile ([email protected]).

Something else occurred to me though: do you have any other extensions installed that use your GitHub login? You can see which extensions use it here: image

alexr00 avatar Mar 22 '22 09:03 alexr00

Thanks!

The extensions using my GitHub login are "GitHub Pull Requests and Issues" (actively using it today) and "Live Share" (last used 6 days ago).

I'm now running v0.39.2022032209 Pre-Release and haven't gotten the repeated GitHub login requests today yet.

I'll keep an eye on the rate limit errors, etc. and get you a full copy of the debug log.

wagnerone avatar Mar 22 '22 15:03 wagnerone

I haven't had an opportunity to get your the log since I last posted. Is this something that would still be of use?

I'm unsure how to know if it's eating all my API credits if it's not asking me to log in repeatedly. Without that happening, I'm not sure when to collect the debug log.

wagnerone avatar Mar 25 '22 13:03 wagnerone

I'm going to try to add some more logging so we can roughly see when we hit 5000 requests in an hour. I will let you know once the logging is available!

alexr00 avatar Mar 25 '22 13:03 alexr00

I ran into this issue recently after our org started using GitHub Enterprise w/ SAML. Latest release of VSCode with this plug-in v0.90.0. IIRC, To fix it I logged out of VSCode from the little person icon in the lower right, then I logged back in.

jleach avatar Jul 03 '24 18:07 jleach

The extension 'Continue - Codestral, Claude, and more' wants to sign in using GitHub

this notification had been sent to macOS alarms N times where N is number of VSCode instances... which is quite annoying. I don't plan to give it access and it seems there are no way to turn off the method of signing in per workspace/user/host in VSCode

M00N-MAN avatar Jul 17 '24 10:07 M00N-MAN

@M00N-MAN each extension can behave well or poorly when asking for GitHub auth. I would suggest you report this to each of the extensions that is asking for auth, as each one will need to be fixed. Is GitHub Pull Requests one of these?

alexr00 avatar Jul 17 '24 11:07 alexr00

@alexr00 yes, the GitHub Pull Requests extension is one of these.

a sample of the many dialogs from: The extension 'GitHub Pull Requests' wants you to sign in again using GitHub.

Type: Bug

...

Extension version: 0.144.0 VS Code version: Code - Insiders 1.121.0-insider (f805d63defafb2ae798360714d6e7600d154a6df, 2026-05-15T12:52:51-04:00) OS version: Darwin arm64 25.5.0 Modes:

System Info
Item Value
CPUs Apple M1 Max (10 x 2400)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x106b [Google Inc. (Apple)], DEVICE=0x0000 [ANGLE (Apple, ANGLE Metal Renderer: Apple M1 Max, Version 26.5 (Build 25F71))], DRIVER_VENDOR=Apple, DRIVER_VERSION=26.5 ACTIVE
Machine model name: MacBookPro
Machine model version: 18.2
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_graphite: enabled_on
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 6, 24, 16
Memory (System) 64.00GB (0.08GB free)
Process Argv --crash-reporter-id 2b2ed373-0e08-45ca-90d5-e4a2fd6c06d5
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
pythonvspyt551:31249597
nativeloc1:31118317
dwcopilot:31158714
dwoutputs:31242946
copilot_t_ci:31333650
g012b348:31231168
pythonrdcb7:31268811
pythonpcpt1:31399616
6518g693:31302842
63221493:31336333
envsactivate1:31349248
editstats-enabled:31346256
cloudbuttont:31366566
3efgi100_wstrepl:31403338
cp_cls_t_966_ss:31454198
c0683394:31481635
8hhj4413:31478653
38bie571_auto:31426784
cp_cls_c_1081:31454833
conptydll_true:31485575
ia-use-proxy-models-svc:31446143
e9c30283:31453065
test_treatment2:31471001
c9b86496:31447327
idci7584:31454084
e3e4d672:31454087
ei9d7968:31462942
quick_suggest_off_75197330:31462668
7e884298:31462391
7e187181:31482583
h08i8180:31475367
ddid_c:31478205
hmra_i5g22:31514984
getcmakediagnosticson:31489824
bjc72774_agent_sandbox:31505880
7df3h592:31491241
cp_cls_c_1082:31504161
logging_enabled_new:31490725
jb_cp_cls_c_632:31510883
cg448276_tst_on:31503513
b1g4i769:31503653
ha629193:31508444
31fi7170_t:31510641
jh5f2457_c:31514653

Image Image Image Image Image Image

jsoref avatar May 17 '26 10:05 jsoref

I ran into this issue recently after our org started using GitHub Enterprise w/ SAML. Latest release of VSCode with this plug-in v0.90.0. IIRC, To fix it I logged out of VSCode from the little person icon in the lower right, then I logged back in.最近我们的组织开始使用带有 SAML 的 GitHub Enterprise 后,我遇到了这个问题。最新版本的 VSCode 带有这个插件 v0.90.0。我记得为了修复它,我从右下角的那个小人图标中登出 VSCode,然后重新登录。

Thanks,I didn't do as you do,I click the under button and it turn into "Settings Sync is On",then the bug disappear.

qingzheng-web avatar Jun 10 '26 16:06 qingzheng-web

Looks like it's started to happen again

DenisMkS avatar Jun 10 '26 16:06 DenisMkS

Looks like GraphQL errors out with 401 (instead of 403 reported originally)

Log
2026-06-10 11:18:59.125 [info] [Activation] Extension version: 0.148.0
2026-06-10 11:18:59.188 [info] [Authentication] Creating hub for .com
2026-06-10 11:18:59.342 [info] [Activation] Registering built in git provider.
2026-06-10 11:18:59.342 [info] [Activation] Looking for git repository
2026-06-10 11:18:59.342 [info] [Activation] Found 0 repositories during activation
2026-06-10 11:18:59.342 [info] [Activation] Git repository found, initializing review manager and pr tree view.
2026-06-10 11:18:59.413 [info] [GitAPI] Registering git provider
2026-06-10 11:18:59.413 [info] [Review+0] Validate state in progress
2026-06-10 11:18:59.413 [info] [Review+0] Validating state...
2026-06-10 11:18:59.642 [info] [GitPostCommitCommands] Trying to register post commit commands.
2026-06-10 11:19:02.527 [info] [Activation] Repo state for file:///c%3A/dev/MINGW-packages changed.
2026-06-10 11:19:02.527 [info] [Activation] Repo file:///c%3A/dev/MINGW-packages has already been setup.
2026-06-10 11:19:06.706 [info] [FolderRepositoryManager+0] Found GitHub remote for folder c:\dev\MINGW-packages
2026-06-10 11:19:07.890 [info] [FolderRepositoryManager+0] Trying to use globalState for assignableUsers.
2026-06-10 11:19:07.890 [info] [GitPostCommitCommands] Trying to register post commit commands.
2026-06-10 11:19:07.890 [info] [GitPostCommitCommands] GitHub remote(s) found, registering post commit commands.
2026-06-10 11:19:07.890 [info] [GitPostCommitCommands] Looking for remote. Comparing 9 local repo remotes with 1 GitHub repositories.
2026-06-10 11:19:07.890 [info] [GitPostCommitCommands] Found a repo when getting post commit commands.
2026-06-10 11:19:07.890 [info] [GitPostCommitCommands] Looking for remote. Comparing 9 local repo remotes with 1 GitHub repositories.
2026-06-10 11:19:07.890 [info] [GitPostCommitCommands] Found a repo when getting post commit commands.
2026-06-10 11:19:08.029 [info] [FolderRepositoryManager+0] Using globalState assignableUsers for 1.
2026-06-10 11:19:08.952 [info] [Review+0] No matching pull request metadata found locally for current branch upx
2026-06-10 11:19:09.770 [info] [Review+0] No matching pull request metadata found on GitHub for current branch upx
2026-06-10 11:19:13.732 [info] [Authentication] Detected invalid GitHub credentials; prompting for re-authentication.
2026-06-10 11:19:13.733 [error] [GitHubRepository+0] Error querying GraphQL API (MaxIssue): Network error: Response not successful: Received status code 401. 
2026-06-10 11:19:13.733 [error] [GitHubRepository+0] Unable to fetch issues with query: Error: Network error: Response not successful: Received status code 401
2026-06-10 11:19:13.774 [error] [GitHubRepository+0] Error querying GraphQL API (Issues): Network error: Response not successful: Received status code 401. 
2026-06-10 11:19:13.775 [error] [GitHubRepository+0] Unable to fetch issues with query: Error: Network error: Response not successful: Received status code 401

mlt avatar Jun 10 '26 16:06 mlt

currently getting this.

dayoolacodes avatar Jun 10 '26 16:06 dayoolacodes

Vibe coding at Microsoft seems to be going strong

MicroDroid avatar Jun 10 '26 16:06 MicroDroid

Yeah I've just started getting this today. On mac, I've tried removing keychain access associated with github, but constantly getting:

Image

DevTomUK avatar Jun 10 '26 16:06 DevTomUK

Yep, same here - disabled the extension for now

MattRiddell avatar Jun 10 '26 16:06 MattRiddell

Happening for me too. For a few days now at least (on Insiders).

wagnerone avatar Jun 10 '26 18:06 wagnerone