Closed jakhog closed 5 years ago
I've had that error before as well, it seems to be on github's side since it resolved itself after a while. But yeah, we should handle this in a nicer way
Yep, that's the point of it. It actually tells you all along how many requests you can make, and when you will get more in the HTTP response headers:
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 56
X-RateLimit-Reset: 1372700873
I don't think we want to make a Github App that the users have to authorize just for this, there are three things (of top of my head) we can do:
https://api.github.com/search/repositories?q=+org:dolittle-boilerplates
. This has 10 times the number of requests before we hit the limit, compared to the normal APIs.--force-something
flagThis issue should probably be posted at dolittle-tools/common. Sorry about that 🤦♂️
I guess this goes away with the implementation of https://github.com/dolittle-tools/common/issues/6 - close?
Yep, this is fixed now :)
This might just be an issue for me now as I'm experimenting with the Github APIs myself, but when I tried to update the boilerplates, it failed with this message error:
I'm pretty sure that this was caused by the Github API rate-limit for unauthenticated requests. For now, I guess this isn't really a big deal, but since it's tracked by IP, it's not unthinkable that it might happen for other people in offices as well.
There are many ways to solve this, but I think for now a good start would be to check for this error, and handle it with a nice message in the terminal letting me know that I have to wait a little bit, and try again. The message you get back is well described here. You can also just try to refresh
https://api.github.com/orgs/dolittle-boilerplates/repos
a bunch of times yourself.