Too many requests during Product fetching.

Too many requests during Product fetching.

mrkarim
Shopify Partner
19 1 0

Hello,

I hope this message finds you well. I am currently encountering an issue when making requests to the Shopify API from my server fetching the product list and collection list. Surprisingly, the same requests work perfectly fine from my local machine. Here are the details of my situation:

Problem:

I am consistently receiving a `429 Too Many Requests` error when attempting to access the Shopify API from my server. However, the same requests work seamlessly from my local machine without any rate-limiting issues. Code:

 
const REQUEST_TIME_DELAY = 1;
const SHOPIFY_REQUEST_LIMIT =2000;
const BUCKET_SIZE = 20;
const shopifyApi = new ShopifyApi({
shopName: shopDomain,
accessToken,
timeout: 600000,
autoLimit: {
calls: SHOPIFY_REQUEST_LIMIT,
interval: REQUEST_TIME_DELAY,
bucketSize: BUCKET_SIZE
}
});
I am using shopify-api-node npm pacakge manager.

 Has anyone else experienced a similar issue when accessing the Shopify API from a server? Are there specific considerations or best practices for server configurations to avoid rate-limiting problems with Shopify? Any insights, suggestions, or guidance on how to troubleshoot and resolve this issue would be greatly appreciated. Thank you in advance for your assistance!

Best regards,

Replies 0 (0)