Deuchnord / mercredifiction

A website that spoils your fictions
https://mercredifiction.io
GNU Affero General Public License v3.0
4 stars 2 forks source link

Too many requests error from Mastodon API #4

Open Deuchnord opened 6 years ago

Deuchnord commented 6 years ago

Mastodon's API returns sometimes 429 Too Many Request errors.

Logs of the app:new-authors:get-statuses command:

 [ERROR] Could not get lareinedeselfes@framapiaf.org's statuses'                
         Error was: Trop de requêtes émises dans un délai donné in              
         /var/www/mercredifiction/src/Utils/MastodonUtils.php at line 239

(Error was: Too many requests emitted in a given delay)

We'll have to temporize the requests to Mastodon in order to avoid this error.