Hey guys how are you today? I am having a big issue on my Shopify App that I listed a couple of days ago. The core functionality of my app is an endpoint that hits the Shopify API endpoint to edit draft_orders several multiple times. I am fully aware of the rate limits of 40 requests per minute and the refresh rate of 2 requests per second.
The strange thing is the timestamp of these failed requests:
PUT https://****.myshopify.com/admin/draft_orders/124016722005.json [429] 09:09:16
PUT https://****.myshopify.com/admin/draft_orders/124016722005.json [429] 09:09:18
PUT https://****.myshopify.com/admin/draft_orders/124016722005.json [429] 09:09:23
PUT https://****.myshopify.com/admin/draft_orders/124016722005.json [429] 09:09:31
PUT https://****.myshopify.com/admin/draft_orders/124016722005.json [429] 09:09:47
PUT https://****.myshopify.com/admin/draft_orders/124016722005.json [429] 09:10:19
All of these are returning:
Error code: 429 (Too many request)
Error message: REASON: Exceeded 2 calls per second for api client. Reduce request rates to resume uninterrupted service.
As you can see there is more than 1 minute of time between the first failed request and the latest. So I am completely confused of what could be causing the issue.
Please if anyone can help me I will be really appreciate it. Without this the app its not working as expected and the stores are not receiving the service that they deserve.
Thank you!