Carpet

Carpet

2M Downloads

[Scarpet] Add check for rate limit when downloading apps

Ghoulboy78 opened this issue ยท 0 comments

commented

After recent experimentation with github API to test downloading apps, I came across the issue of rate limiting, where basically github told me I couldn't use its API for 2 hours after having made the limit of 60 requests. Problem is that most of these seemed to come from me just looking for the command suggester in /script download.
This raises one of 2 issues:

  1. The command suggester for /script download needs to be looked at again
  2. We should look into telling the user that they have run out of requests, and also the time before they can ask again. This is not immediately visible information, as it comes back in the header of the HTTP response.

I think this will help make /script download more friendly both for programmers and users.