-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API: Handle 403 "Forbidden" response (usage limit) #29
Comments
I've found that a 403 usually meant my transient wasn't quite working as I thought. |
Correct — that would be related. It's not hit for updates hardly every when transients work, but still wouldn't hurt to allow login — hitting I'll probably code this for the search plugin (where there's a lower API limit and higher need for logging in), then just bring it over once it's stable. |
Are you creating a single transient for all plugins or a transient for each individual plugin? |
Single transient for each cached piece of information. (1 to several per plugin.) |
Just realized we might have been using Taking There is also a transient set for each request for unique info from the Github API (plugin info, or readme contents). All transients share a plugin-wide timeout, currently set to 60 minutes. It can be modified or filtered here. |
api
methods just return false when a non200
response is received. It might be helpful to ask the user to provide a Github login if we receive403
, which means the anonymous API usage limit has been reached.The text was updated successfully, but these errors were encountered: