Open rhaschke opened 1 month ago
I think I'm getting a similar issue. My guess is that it's caused by the launchpad. I can replicate this every time I try to reload the launchpad, or refresh it.
I also don't get any data there!
Hi All,
Can you please enable debug logging by running from GitLens: Enable Debug Logging from the Command Palette (F1
or ctrl/cmd
+shift
+p
). This will enable logging to the GitLens and GitLens (Git) channel in the Output pane.
Once enabled, please reproduce the issue, and attach the log from the both GitLens and GitLens (Git) channels.
Thank you!
Sure. These are the logs with debug-logging enabled:
I have also been receiving the "GitHub request timed out" pop-ups the last 2 weeks or so, constantly, in both personal GitHub repository and my work GitHub repository workspaces. Never received them before since I've been running the extension for multiple years. These following debug logs seem most relevant, but provided them in full to try and help.
[2024-05-24 16:23:46.287] [ d5] GitHubApi.searchMyPullRequests
HttpError: Unknown error: {"data":null,"errors":[{"message":"Something went wrong while executing your query. This may be the result of a timeout, or it could be a GitHub bug. Please include `E2B5:17176:C8D909:165E039:6650BF08` when reporting this issue."}]}
[2024-05-24 16:23:46.287] [ d9] GitHubIntegration.trackRequestException
[2024-05-24 16:23:46.287] [ d9] GitHubIntegration.trackRequestException completed [0ms]
[2024-05-24 16:23:46.287] ShowMessage(error, 'GitHub request timed out.', suppressIntegrationRequestTimedOutWarning, {"title":"Don't Show Again"})
[2024-05-24 16:23:46.288] [ d5] GitHubApi.searchMyPullRequests
HttpError: Unknown error: {"data":null,"errors":[{"message":"Something went wrong while executing your query. This may be the result of a timeout, or it could be a GitHub bug. Please include `E2B5:17176:C8D909:165E039:6650BF08` when reporting this issue."}]}
[2024-05-24 16:23:46.288] [ d5] GitHubApi.searchMyPullRequests — failed [10382ms]
GitLens log:
GitLens (Git) log:
This issue needs more information and has not had recent activity. Please provide the missing information or it will be closed in 7 days. Thanks!
The issue is still there, the info have been provided, @d13 why it's marked inactive?
+1, same issue here. I guess the bot automatically marked it as inactive
when it shouldn't have.
This started happening with the new version of GitLens released within the last month or so.
What additional information would be helpful here?
Recently, I've been seeing:
Rich integration with GitHub has been disconnected for this session, because of too many failed requests.
it also seemed to start happening in the last month or so. Not sure if related, or if I should file a new bug.
Hello, same issue since yesterday.
I have started to receive this error message every 30 seconds, this is so annoying... uninstalling
Hey all sorry for this issues here, and in the latest release (15.1 or the current pre-release) we've added some settings to try to understand how to optimize our queries here.
But first, you can always set gitlens.launchpad.indicator.polling.enabled
to false
to disable the background polling, and we will only make that PR query when you open Launchpad directly.
To help us out here, can you try setting gitlens.launchpad.experimental.queryUseInvolvesFilter
to true
it should hopefully be a lighter-weight query that might help. If that still doesn't help, leave that on and try setting gitlens.launchpad.experimental.queryLimit
to something less than 100 (both the default and max) to see if anything gets the query to succeed and report back.
Also for those hitting this issue, can you provide details on how many repos/orgs that your GitHub account has?
@ibqn even in 15.0 you should only have seen the error once at VS Code open, and at most a couple more times in 30m intervals before we turned off the integration for the rest of the session.
In 15.1 (and current pre-release), there should be no notifications at all, and the Launchpad icon in the status bar should show a warning next to it and the hover says we failed to load items, and then the Launchpad itself also shows that.
If anyone is not seeing that behavior above in 15.1 or pre-release, please let us know.
Can you try setting
gitlens.launchpad.experimental.queryUseInvolvesFilter
totrue
?
This doesn't help for me, using version 15.1 now.
"gitlens.launchpad.indicator.polling.enabled": false
This successfully silences the warning. Thanks for providing this quick workaround.
Also for those hitting this issue, can you provide details on how many repos/orgs that your GitHub account has?
I am a member of 15 organizations with a total of 1749 repos + 108 personal repos.
@rhaschke What warning are you seeing? In the latest version there shouldn't be any warning/notification outside of the a ⚠️ icon next to the Launchpad 🚀 icon
In tomorrow's pre-release (v2024.6.12xx
), we're adding a new setting gitlens.launchpad.ignoredOrganizations
that lets you filter certain organizations out from the Launchpad query. For example: "gitlens.launchpad.ignoredOrganizations": [ "microsoft" ]
For those running into this issue who are in several organizations, would you mind switching to the pre-release version of GitLens after it updates and then playing with this setting and seeing if it helps stop the timeouts?
What warning are you seeing? In the latest version there shouldn't be any warning/notification outside of the a ⚠️ icon next to the Launchpad 🚀 icon
You are right. Today, only the ⚠️ icon is shown.
For those who have a GitKraken account or are willing to create one, would you mind checking https://gitkraken.dev/launchpad and letting us know if that Launchpad works for you? Note: you will need to connect GitHub first (https://gitkraken.dev/settings/integrations)
This would help us narrow down some potential causes of the issue as we investigate.
Was anyone able to get the timeouts to stop on the pre-release by filtering out some organizations using the setting posted above ☝🏼 ?
we're adding a new setting gitlens.launchpad.ignoredOrganizations that lets you filter certain organizations out from the Launchpad query. For example: "gitlens.launchpad.ignoredOrganizations": [ "microsoft" ]
Hello, I switched to the pre-release version and tried logging in to the vscode taskbar and yes, the login was successful. I also ignored the organizations I own in the vscode json config, and one of them was Microsoft, as suggested. And the error was not shown again until then.
https://github.com/gitkraken/vscode-gitlens/assets/44041037/33bf74b4-b20c-474e-935d-3f28ae068baa
Description
I frequently get the error message "GitHub request timed out." from GitLens. The log shows:
GitLens Version
15.0.3
VS Code Version
Version: 1.89.1 Commit: dc96b837cf6bb4af9cd736aa3af08cf8279f7685 Date: 2024-05-07T05:16:23.416Z Electron: 28.2.8 ElectronBuildId: 27744544 Chromium: 120.0.6099.291 Node.js: 18.18.2 V8: 12.0.267.19-electron.0 OS: Linux x64 6.5.0-28-generic
Git Version
git version 2.34.1
Logs, Screenshots, Screen Captures, etc
No response