-
Notifications
You must be signed in to change notification settings - Fork 8
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
Increase and enforce GitHub API release fetching quotas #741
Comments
This is an interesting bug, let me explain what's happening. Since most of the repos I tend to check when I built the web app had just a bunch of releases, I'm doing max of 10 requests, with 100 releases per request, which gives us a total of 1,000 releases. You can see the code for this behavior here: https://github.com/octoclairvoyant/octoclairvoyant-webapp/blob/main/src/queries/release.tsx However, Renobate bot has thousands of releases! So basically what's happening is that the desired From release is out of the first 1,000 releases at this point. You can see this by scrolling to the very bottom of the releases select: So we need to update the login within that query so it keeps asking for more releases if after those 10 iterations both of them are not available yet. |
Thanks you for the explanation. So the problem is with the GitHub requests limit, not with the URL. 😄 What if users spam our site with queries like from We should test that:
What do you think? |
|
I'm working on fixing this issue, and I discovered something else: If you didn't authorize GitHub (i.e. unauth user) then GitHub doesn't allow us to fetch more than 1k releases. I got the issue fixed, but I'm getting this error when trying to fetch page 11: For auth users is working fine, but it needs to fetch more than 50 pages in order to show the changelog for the case mentioned in this issue! |
Do you want a new issue to track the new error, or will you fix this in PR #767 as well? |
I'll try to address it here, at least with some temporary notification, then we can create a different issue to handle errors properly (together with the login modal). What do you think? |
Sounds good to me! We should show the error to the user, we can make it look pretty later. 😉 |
Describe the bug
I don't see a changelog after clicking on a legacy style URL to Octoclairvoyant.
Give the steps to reproduce
What browsers are you seeing the problem on?
Bug is not about browser
Have you thought of a possible solution?
No
If you have thought of a solution, please tell us about it!
No response
Do you want to help fix the bug?
No
Is there anything else we need to know?
Maybe the version range is too big, and Octoclairvoyant craches or exceeds some GitHub API limit?
Or old style link not properly converted to new comparator slug?
I got the link from @Belco90 themselves, so I assume the link was good at the time it was posted. 😉
Source of link: renovatebot/renovate#8177 (comment)
The text was updated successfully, but these errors were encountered: