Closed muralikodali closed 2 years ago
GitHub has a rate limit for unauthenticated API requests: you can only make 60 per hour. I could add some authentication to eget which would allow you to raise this limit to 5000 per hour by providing a valid GitHub oauth token in the GITHUB_TOKEN
environment variable. Currently the code implementing this is commented out in download.go
due to being untested.
Any news on this?
I have pushed the update. Using GITHUB_TOKEN
should now allow you to make more requests per hour.
after installing new version, problem subsided for two days and repeating again.
Have you set up a GitHub OAuth token? With the token you should not see this problem unless you are exceeding 5,000 requests per hour.
I have also checked with wireshark to find out any requests are being made with github. there is no abnormal traffic to github.
Does the problem occur every time you use eget, or only in certain circumstances?
it occurs every time when using eget
I have pushed an update with a possible fix and a new option --rate
which will display rate limiting information (total and remaining allowed requests) to help you diagnose the issue further.
thanks for the update.
it is now working without errors.
I have the same problem with 0.3.0 - would you be able to make the fix available with a new release?
Yes no problem, I will release 0.3.1 later today.
eget
uses now GITHUB_TOKEN
. A side note: --rate
seems mutually exclusive with all other options. Help for this option should make this explicit in my opinion.
I have got the following error :