useful-forks / useful-forks.github.io

Improving GitHub's Forks list discoverability through automatic filtering. The project offers an online tool and a Chrome extension.
https://useful-forks.github.io/
MIT License
1.19k stars 61 forks source link

Rate Limit Exceeded error: Display for how long users should wait #14

Closed payne911 closed 1 year ago

payne911 commented 3 years ago

When the 403 - Rate Limit Exceeded error happens, one of the headers is x-ratelimit-reset: 1614575718. The digit is a UNIX Timestamp which could be converted to display how long the user should wait before trying again.

payne911 commented 1 year ago

Closing this issue with a new feature to celebrate this repo's 800th star! :)

It looks much nicer in real-time, but basically this black bar in the middle is a progress bar. When it ends, the scan is resumed.

image

The new "info box" comes from this commit: https://github.com/useful-forks/useful-forks.github.io/commit/0b854aa7d1120f649f4a29f961ae8911aeff0722

shashankYelluri commented 1 year ago

Hey @payne911, how did you solve this issue? I encountered the same situation where I had to wait for some "x" time before making a request. But the throttle plugin added 5 seconds, is there a way to change this ? If possible, could you please help me with this? Thanks

payne911 commented 1 year ago

I encountered the same situation where I had to wait for some "x" time before making a request. But the throttle plugin added 5 seconds, is there a way to change this ?

You mean that the plugin ignores the "x" and always only waits for 5 seconds?

Do these links help?