Questions and discussions about using the Shopify CLI and Shopify-built libraries.
We are getting response which returned by shopify, when trying to push inventory to shopify.
The below mentioned, received response-----
"Exceeded 4 calls per SECOND FOR api client. Reduce request rates TO RESUME uninterrupted service"
what could be reason throwing this response?
Hi @vijayakumar - this is definitely an uncommon error, thanks for getting in touch. Usually, as the error mentions, this is due to your app or your API Client making too many requests.
In the past, I've seen this error pop up due to multi-threaded operations - if you're running multiple apps or operations using the same Shopify API credentials, that could potentially cause this. Or if you've set up too many sequenced calls (let's say for large bulk inventory imports).
Generally, I'd recommend first setting up a system to retry a failed request if you are making too many calls and hitting an error if you haven't done so already. There is a certain level of expectation that some calls will have a marginal rate of odd responses like this, but setting up a way to automatically retry the call on failure can help us determine if the issue is persisting.
I'm not a developer myself and my knowledge mainly lies around our APIs themselves, so I can't offer a solution as to how to implement the solution programatically, but I hope this helped provide some next steps.
Cheers!
Alan | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog