Repeatedly asked to sign in again using GitHub
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
This has been happening to me all week, and I couldn't figure out what it was, so so irritating. I had to disable the plug-in, and I really love the plug-in. Please fix this.
@alexr00 I'd really say that it's time to re-open this issue, don't you think? Look at all the recent traction.
I've been having a lot of problems with my GraphQL API limit being exhausted all the time, even when I'm barely using it, and I'm pretty sure this is related. Do the rest of you guys get that same thing too, when you're trying to drive a PR with Claude or something and it's getting rate limited and has to switch over from the GraphQL API to the REST API just to get anything done? The extensions themselves can't refresh anything on GitHub because they think they're built with GraphQL and not REST as well.Up
update:
@alexr00 This is absolutely related to the GraphQL API rate limits being depleted all the time, just confirmed it. I just had one of those pop-ups show up to ask me to log in again. I've been running watch -n5 'gh api rate_limit --jq ".resources.graphql"' for about a day now, because I was trying to figure out what was causing that, now I have an attribution. It was showing my limit of 5,000 had zero remaining right at the moment that popped up.
I believe that is the root cause of this pop-up asking us to re-sign in repeatedly. It's because it's doing something in the background that's obviously thrashing and has no rate limit or circuit breaker logic (kind of ironic). It bleeds the rate limit, and then it asks to sign in again, and that's why it's happening so frequently. It's happening in every workspace I have open simultaneously. Sometimes every 5 minutes, all of my repos will ask me to sign in, and I've had to disable the extension completely until there's some kind of resolution.
As much as I would love to dig into this and fix it myself, I have like fifteen projects going at the same time right now, so I really don't have the bandwidth. I hope someone else does, though.
We have rate limit logging in the extension. If you able to share it it would be very helpful:
- Set the default log level of GitHub Pull Request to "Debug" (command "Developer: Set Log Level" -> GitHub Pull Request -> Use the double check next to "Debug" to change the default log level)
- Next time you see an issue, share the output from GitHub Pull Request. If you don't want to share it publicly, you can send it to my github email
[email protected].