Shopify error 429 too many requests generally happens due to API rate limits.
Limits are calculated using the leaky bucket algorithm.
All requests that are made after rate limits have been exceeded are throttled and an HTTP 429 Too Many Requests error is returned.
Requests succeed again after enough requests have emptied out of the bucket.
Here at Ibmi Media, as part of our Server Management Services, we regularly help our Customers to resolve related errors concerning E-commerce platforms on a daily basis.
A 429 too many request error generally triggers when an app receives more API calls than it allows.
Shopify uses API rate limit to ensure the stability of the platform. They use it to control the number of requests that any app can make on the platform.
Different types of rate-limiting methods are available, which include calculated query cost, request-based limit and so on.
As the Shopify error 429 triggers mainly due to the API rate limit, the first step to fix the error would be to find the number of API calls being made to the app.
Also, we may need to figure out if most of them are repeated searches or not.
We can find the number of API calls being made from the app's developer settings.
Once we are aware of the number of API calls and their types, there are two ways to go about solving this problem:
1. Increase the “rate-limit” of the app.
For example, we may need to increase rate-limiting from 100 to 10,000 API calls a day. For this, we may require to upgrade your account type with the app.
2. Decrease use of the API calls.
For instance, it may be possible that the app is receiving about 8000 requests while the permitted limit is 1000. If 7000 of those request are repetitive, decreasing the API calls would be enough instead of upgrading the app.