flares
flares copied to clipboard
ERROR: More than 1200 requests per 300 seconds reached. Please wait and consider throttling your request speed
Due to the number of domains I have now (I think near 400) I've started to see this error now. 300 seconds is quite a long time to run this script (flares).. I'm not sure what options there are now in this case.. any ideas?
we need to investigate what could be optimized, or add throttling to the requests the program sends to match CF limits.
https://developers.cloudflare.com/api/limits/ This is a hard limit. The only way that comes to mind now is to batch download say 100 zones each time flares runs. Then depending on the frequency you run flares (at least initially) you may need to wait some time before all zones are exported. The end result will still be an accurate export, it will just take longer.
feel free to submit a pull request where the loop waits for the time.Sleep(time.Second * limit) once it reaches about 90% of the requests limit per second.
stale