nliautaud / p01contact

Create contact forms by writing simple tags. Also a plugin for GetSimple and Pico CMS.
MIT License
16 stars 15 forks source link

Github API rate limit exceeded #54

Open ChristianKlette opened 4 years ago

ChristianKlette commented 4 years ago

Hi Nicolas. I use the p01contact als GS plugin without any issues since years. But since last saturday it doesn't work anymore.

The config panel told me:

New release check error debug : Github API rate limit exceeded for xxx.xxx.xxx.xxx. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)

I' tried to find out, how can I do an Authenticated requests with the form, but I didn't found a solution so far. Does anyone could help ?

Thank you and kind regards. Christian

nliautaud commented 4 years ago

Hi Christian,

The Github API is only queried once when loading the config panel (note that the unauthenticated rate limit is above 50 query by hour) to check for a new release, and thus shouldn't break any functional behavior.

The update check (that can be commented out) can be found here :

https://github.com/nliautaud/p01contact/blob/master/p01-contact/src/P01contact.php#L443-L455