What can I do if lightspeed is throttling my api requests?
The program I recently wrote, which uses the lightspeed api, has been working well for weeks. In the last week an employee came to me telling me that lots of errors were coming back from my program. Upon further investigation I found that I was getting an HTTP 429 Error indicating that my program was sending lightspeed too many requests(more than 1 per second) and that I should reduce the amount of requests to avoid being throttled.
Before every request I added a time.sleep(5)
So, a 5 second delay before every single request in my program. What used to take 1 minute now takes at least 5 minutes because of the delays.
Even with these delays I still get the same HTTP 429 error, I even slowed the request rate down to 1 request every 20 seconds but still I get the same error.
I am convinced that my api traffic is being throttled, what can I do about this?