-
-
Notifications
You must be signed in to change notification settings - Fork 769
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
bug: GitHub ratelimit unhandled #1776
Comments
Are you rate limited on GitHub? https://api.github.com/rate_limit |
|
You seem rate-limited, but still, this is something ReVanced Manager should take care of. |
Alternative sources
triggers an unusable manager
For support move to the links on https://revanced.app |
👋 Hello, @ILoveOpenSourceApplications! Quick status update here, Unfortunately I will have to unassign myself from this issue (and any other issue that I've assigned to) as tomorrow is the day where I will became unavailable for the rest of the month for unspecified reason (for team refer to recreated janky excel file in the email that I've sent about weeks ago). 🔧 For anyone who's going to work on this From a quick glance at this issue we would need some kind of interceptor to check if GitHub reply with Feel free to deviate from this plan if you feel like you have a better solution. |
Hi, @validcube. Nope, I don't have any better solution. Though due to this issue, at times when I'm trying to patch, the manager becomes basically unresponsive and buffers and or doesn't load anything required. Switching between WiFi and mobile network seems to help at times. |
This is just my doubt, but this issue began only after the introduction of changelogs into the manager. And everytime I open the manager and tap on the changelogs button, I noticed that it's fetching real time data from the internet (from the buffering). Could this also be one of the reason why the GitHub rate limit is getting exceeded as the manager now accesses the github api for fetching the changelogs for both the manager and patches as well as fetching the patch & integration data for patching as well? If so, then making the manager remember the last changelog until an update is done to either would be better in handling the traffic right? |
@validcube May I make a PR for this? I'm thinking of using toast to notify the rate limit and time remaining like this. But before I open the PR, I have one question. This is useful when the ReVanced API is down and returns 500 error, or user mistyped alternative sources. |
Instead of a toast which can go away, you can show a label at the places where stuff should've loaded |
A setting could be added to input a GitHub PAT to circumvent ratelimit. The ratelimit currently happens due to a bug in ReVanced Manager making more requests than necessary due a caching issue. The solution isnt known, but if found, rate limiting would hardly be a problem. You'd need to reopen ReVanced Manager like 30 times to hit any rate limits |
Additionally ReVanced Manager is supposed to cache everything. After a ratelimit, it should simply use the cached files, just like if offline |
Sure, you can make a PR whenever you like.
For me, I would use a dialog component for something critical because toast feels like simple low-priority feedback (probably because it is) and isn't something the user would normally see or care about. This is a quick mockup of what the dialog could look like |
The current solution is a workaround rather than a fix. But atleast the user will know why nothing is loading and why they're unable to use the manager. |
The cache should be fixed if it is an imminent issue that needs to be looked into, then a proper solution can be done for ratelimits |
I remember adding the lock. Which commit introduced the regression? |
In regards to rate limits, ReVanced Manager should work just like if it were offline, until the rate limit elapses. Actions that require the API such as when the app launches for the first time or when you refresh the home feed should show a toast, or if better, a dialog explaining the rate limit |
I looked around some revisions of github_api.dart, but Lock has never been added |
👋 Hello @ILoveOpenSourceApplications! Thanks for reporting the bugs, this is hopefully fixed in ReVanced Manager Flutter v1.21.0 and this issue will be closed. If your problem hasn't been resolved, feels free to reopen the issue! |
Bug description
If alternative source is toggled on/off once, the manager goes into this unresponsive state where none of the patchable apps load, and if a patchable app is selected, none of the patches load either. And the changeling also stops working as it showing a loading circle instead.
807fbe11-e595-4b12-9d8d-d8e4ecec5d3d.2.mp4
PS: #1760 can be clubbed with this issue.
Version of ReVanced Manager and version & name of app you are patching
v1.19.3
Installation method
None
ReVanced Manager logs
Patch logs
No response
Acknowledgements
The text was updated successfully, but these errors were encountered: