Hi I am importing products with attributes into my new store. I have nodeJs script which is adding attributes via API. And my script stopping it’s execution with no errors. just freezing… could you, please check if we reached the API limits ?
@rZaglinskij You can examine the headers being returned to your API requests to determine if you are being rate-limited. The
X-Shopify-Shop-Api-Call-Limit
header will tell you where you stand in the “leaky bucket”. If you are hitting the 40/40/minute limit, then the API will throttle your requests. If that’s the case, then I’d encourage you to either plan for that to happen and handle it gracefully in your code (e.g., inserting a pause in between requests), or take a look at your request volumes and see if there is a way to reduce the number of calls. If it’s not the case, then we’d need more detail to be able to help.
I am using shopify-api-node library, and I have configured the limits
autoLimit: {calls: 1, interval: 1000, bucketSize: 16}
so, the script is OK. it works for the first 1000 items, than freezing… and no response from API
Hi @rZaglinskij ,
We’re not able to provide direct support for NodeJS library based scripts in this forum so you may want to reach out to the provider of the library you’re using for further assistance with debugging the script freezing.
Detailed information about Shopify API rate limits can be found here:
https://shopify.dev/docs/api/usage/rate-limits
Hope you have a great day,
Jon551