canonn-science / CAPIv2-Updater

Nodejs based tool to update the Canonn API with planetary and stellar data from EDSM
GNU General Public License v3.0
1 stars 0 forks source link

Add a sleep function for EDSM ratelimit #18

Closed derrickmehaffy closed 5 years ago

derrickmehaffy commented 5 years ago

Per the following, EDSM has implemented the proper status code 429 - Too Many Requests for the body API

image

We should implement a 5 minute sleep timer when this is hit (300 seconds or 300000 milliseconds) then continue the process.

coldwhitelight commented 5 years ago

This is basically the same as #16 . Will be done together.

coldwhitelight commented 5 years ago

Done and working.