Github API rate limit exceeded
I get this message when updating extensions. Why?
Downloading the Sidebars extension...
Github error: API rate limit exceeded for 50.87.248.69. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
Downloading the Update extension...
Github error: API rate limit exceeded for 50.87.248.69. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
The extensions are downloaded/updated using the github API, which has a limit of 60 requests pe hour.
So please wait an hour until the limit will expire and try to update the extensions again (better, just wait until the updates notice will appear again).
Note: By default the framework caches the API responses. But when you click the Check Now button (on the Updates page) this resets the cache and the framework makes new API requests for each active extension. So if you click that button too often, the limit will be reached very quick, so please don't do that in order to prevent the error above.
Hello, This problem, is more than than problematic...This solution is not reasonable for premium themes. I mean if customers pay more than 50$ for a theme and have to wait an hour for every extension, it's pretty awful, no ? Then, I guess the best way is to include directly the extensions supported by the theme directly in the framework-customization/extensions folder, It works for all of them except for the page-builder. Because there is a relation (parent) with the shortcodes one no ? So I get the error : cannot define again the extension page-builder (already defined in shortcodes... and the folder is there but empty). Well, does it make sense ? I'm just looking for the best way to load the extensions .. :) Sorry I'm not that good developer but I try to learn. By the way, as I already said before you've made an awesome work here, I advance too fast of my theme development process !!
If you add extensions pre-installed in framework-customization/extensions/ your theme will not pass theme-check and marketplace approval.
We can add a config parameter for the github-update extension to disable the cache reset when the user click the "Check Now" button. I think this may help a lot to prevent "API rate limit exceeded" error.
What do you think?
I forgot that detail...Well, I spent some time on the Google trying to understand what happens and :
For requests using Basic Authentication or OAuth, you can make up to 5,000 requests per hour. For unauthenticated requests, the rate limit allows you to make up to 60 requests per hour.
That would be awesome ! Problem is the OAuth no ? it will becomes public ?
Then, I found this : (http://stackoverflow.com/questions/16732103/increase-github-api-limit)
You have to contact GitHub support to have your ratelimit increased, contrary to what spuder claims. They'll raise it for you. As for not sharing your client_id or client_secret, spuder has the right answer there.
And (http://stackoverflow.com/questions/13394077/is-there-a-way-to-increase-the-api-rate-limit-or-to-bypass-it-altogether-for-git)
What do you think ? let me know if I can help. Thank you very much again!
Any news or I am the only one to get this issue every time I try to download an extension ? :P Let me know if I can help you.
Any news?
not yet
or I am the only one to get this issue every time I try to download an extension ?
Do you mean literally every time (you can't install any extension even after one hour when the github limit is reset), or you press often the Check Again button?
Well no, I just did a test and sorry you are right when I get the error if I wait one hour I can install a few ones but (5 actually) then the error comes back. I never pressed the Check Again button.
In fact, there is no way to make an authentification for Unyson ? That would be perfect, 6000 per hour should be enough, no ?
https://developer.github.com/v3/#rate-limiting For requests using Basic Authentication or OAuth, you can make up to 5,000 requests per hour. For unauthenticated requests, the rate limit allows you to make up to 60 requests per hour. Unauthenticated requests are associated with your IP address, and not the user making requests.
If we will hardcode our OAuth token in the framework core and make API requests with it, it will limit all Unyson users to 5000 pe hour. So this is not a good solution.
Sorry I thought it was 5000 requests per user....In that case yes it is not the good solution.
Yet, I don't understand how I pay away these requests. There is maybe a problem there.
I just did another test :
- Went to one of my dev site,
- Unyson page in Wordpress
- Clicked on "Download" on the feedback extension that I don't use.
- Got still the same message :
"Github error: API rate limit exceeded for 213.251.182.10. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)"
I wasn't on this website since more than 12 hours...So I didn't do any request...
So, the best way will be to delete those automatic requests ?
We thought it will not be a big problem but I seems critical.
I think we will do an intermediary site that makes requests to github using our OAuth token and cache them, and all Unyson users will make unlimited requests to that site.
[Unyson User] <---> [Cached API Requests] ---> [Github API]
That should be very good ! Thank you @moldcraft !!
Well, I get this sometime :
On the frontend ... Have you already seen this before ?
On the frontend ... Have you already seen this before ?
The framework uses FW_Flash_Messages::add() to display notice messages, they are displayed both in backend and frontend.
But don't worry, the update extension is activated only if current user is administrator and has permission to update themes/plugins, so simple users will not see this message. These messages are stored in $_SESSION so only you will see them.
The "Github API Cache" site will be ready in a few days.
do you guys need dedicated server for this? It is obvious that many devs are being pulled here since we all need reliable framework but this API thing can kill us all. If you need dedicated server let me know.
No, thank you. Everything is ready. I'am releasing a new version now (2.1.13)
Please update to v2.1.13 and let us know if the Github API rate limit exceeded still happens
Hello,
I updated my 2 dev websites and it worked for 6 extensions. With the website without the update I got the message that we know : Github error Api .... And on my dev website with your latest release I got this :
Any idea ?
Ops...
I replaced the requests to be done through our custom API cache but didn't notice that the zip url is also a request to the api.
http://github-api-cache.unyson.io/repos/ThemeFuse/Unyson-Social-Extension/releases
Download link (zipball_url) of the latest version is
https://api.github.com/repos/ThemeFuse/Unyson-Social-Extension/zipball/v1.0.1
I though it's a direct download link, like on this page if you click the "Download Source (zip)" button, the link is
https://github.com/ThemeFuse/Unyson-Social-Extension/archive/v1.0.1.zip
Sorry about that. I will fix it quick and release a new version.
Hello @moldcraft ! I think, I understand !! No problem, thank you very much for your AWESOME work !!! Keep me informed and if you need any help to test let me know.
Version 2.1.14 is live. Please update and check again if it works.