429 Too Many Requests errors when create fulfillment

Shopify Partner
3 0 0

Hi,

I tried to fulfill 8 orders through API. However, I received error 429 at 5th order.

Current status of X-Shopify-Shop-Api-Call-Limit in previous requests is still 1/40

Please help me solve that problem

Thanks

0 Likes
Shopify Staff
Shopify Staff
1118 78 156

Hey there, 

It sounds like you may be sending your requests too quickly - the API call limit allows 40 calls overall, but it will also restrict you to 2 calls per second. If you were to space your calls out a bit more, this shouldn't be an issue.

Regards,
Josh Wheeler
 

0 Likes
Shopify Partner
3 0 0

I  arealdy tried by manual but it didn't change. I found that, after 5th request, the next request will be error.

By the way, I tried to delay 0.5s each requests, and retried 3 times, however still error.

0 Likes
Shopify Staff
Shopify Staff
1118 78 156

That sounds interesting. The only time we should return that error is if there are too many calls, or they're made too fast. Do you have a request ID for one of these that got the 429 response? I could check and see if anything seems out of order on our end. 

0 Likes
Shopify Partner
3 0 0

Hi,

These are some requests which received 429 error and receiving time

09bfad82-e3ff-4228-a746-a73f8c10f399 2017-10-05 22:31:34,363
a9cd3567-c843-4a08-931e-da5a3a77be84 2017-10-05 22:31:36,353
01b24e93-98bd-4754-9f98-c775fd60724c 2017-10-05 22:31:38,358
32ca2688-3c34-4719-ac20-979ef3342571 2017-10-05 22:31:46,235
9447abc0-7f33-4ce8-ba28-3a890c6ae15a 2017-10-05 22:31:48,252
749f8215-be1d-48ca-bfb7-661f5143d5e4 2017-10-05 22:31:50,244

 

0 Likes
Shopify Staff
Shopify Staff
1118 78 156

Well it certainly did turn out to be interesting, it looks like affiliate shops have a different throttle limit for creating a few specific resources like fulfillments. And it's 5 calls as you mentioned earlier.

What I'm not 100% sure of as of yet is if the leak rate is the same as paid shops are before you're able to make calls again. Have you tried to delay your calls by anything more than 0.5 seconds in between? 

0 Likes
Shopify Staff
Shopify Staff
1118 78 156

Hey again, 

Some additional information to pass along - currently on affiliate or trial shops the throttle limit is 5 per minute on certain actions. This is newer functionality, so we're going to look into documenting this more clearly. 

If you were to sign the shop up for a paid plan, the throttle will increase to its normal levels again. 

0 Likes
Shopify Partner
29 0 2

Why is this still not documented?!

It toke me 2 days of work to figure the API error was because this "SECRET" throttlelling.

This information should be clearly documented in: https://help.shopify.com/api/getting-started/api-call-limit

 

0 Likes
Shopify Expert
9778 86 1525

Guille - it may not have been spotted but it is documented on the fulfilment api docs:
https://help.shopify.com/api/reference/shipping_and_fulfillment/fulfillment

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
0 Likes
Shopify Partner
29 0 2

Thanks Jason. I couldn't find it as I was looking on the orders API. I guess on my case when I am creating an order it's also creating a fulfillment and that's why the throttlelling is getting activated.

0 Likes