I am migrating orders from one shop to another shop, I have used REST APIs to fetch orders from my source shop and save it on source shop.
It’s working fine for 3-4 orders, but while I am trying to migrate 10 orders at a time (one by one in a queue), APIs are throwing 429 throttle error after 5 orders, I don’t know why, I have managed bucket limit too, I am making single request on every 500 ms.
I have logged my every API call response too, so far I can’t see bucket even increased for 2 calls per second too.
Can anyone help me, what is this happening and how can I fix this?
Public app? Private app? Errors in the previous requests?
Not sure how your app is architected but hopefully you’re not just throwing requests every 500ms and hoping for the best. The queue needs to be managed a little better than that.
If you really think you’re doing everything right, grab the request ID from a very recent failure response and paste that here.
Just sending over a request every 500ms lacks some sanity checks to make sure you really don’t exceed rates or run into other resource limit throttles.
Since you talked about creating Orders and you’ve shared the error response I’ll make the bold assumption that this store is an affiliate one - so a dev shop.