Response code 429 (Too Many Requests) , even if im respection the shopify api rate limite

Solved
Kamal_Berriga
Shopify Partner
16 0 0

Im was trying to create products over my store using shopify private app , after creating about 20K products , i got the Response code 429 (Too Many Requests)

My code respect API limitation , I do a sleep of 0.5 between each api call.

I have waited a day and launched the script again , after about 500 API call , i got the Response code 429 (Too Many Requests)

Last API call request ID is : 8fbd51c9-2299-42db-8941-f5a51470a5da

my header is >

http_x_shopify_shop_api_call_limit: '1/40'

 'x-shopify-shop-api-call-limit': '1/40'

 'x-shopify-api-version': '2020-10', I'm using a private app to create products

Accepted Solution (1)
Gregarican
Shopify Partner
1030 86 276

This is an accepted solution.

Okay, have you taken the time to read the replies I've made? As Shopify documentation clearly states, for shops over 50,000 total product variants (you have over that), only a maximum of 1,000 new product variants can be added per day via the API. And even then, it might sometimes be blocked based on other threads I've read in this community forum. If your shop is on the Plus plan this limit appears to be lifted.

 

View solution in original post

Replies 12 (12)
Gregarican
Shopify Partner
1030 86 276

What if you extend the sleep timer for, say, 1 call every second? As long as no other process is using the same API credentials and making calls outside of the ones you are making this shouldn't happen. Wonder if there is a service-side issue on Shopify's end? I've seen other posts on here mentioning the same issue... 

Kamal_Berriga
Shopify Partner
16 0 0

Yes i have tried that ,i have even tried to make 1 call each 1.5 second , but im still getting the same message 429

Gregarican
Shopify Partner
1030 86 276

Are these API calls by any chance POST'ing new product variants? Or just GET'ting of PUT'ting existing records? Shopify has published limits in terms of how many product variants can be created each day.

Kamal_Berriga
Shopify Partner
16 0 0

This are POST api call , for products creation

Gregarican
Shopify Partner
1030 86 276

See https://shopify.dev/concepts/about-apis/rate-limits#resource-based-rate-limits for details. This is a known behavior that's documented.

Kamal_Berriga
Shopify Partner
16 0 0

I have already check that , im respecting the api are limite

Gregarican
Shopify Partner
1030 86 276

How many product variants are already in the particular Shopify shop you are hitting with your API calls? For example, let's say you have 5,000 existing products and each of those have 2 variants. That means the total number of product variants is already sitting at 10,000 total. Read the documentation link I provided. It should make things clear!

The following Admin API resources, in both GraphQL and REST versions, have an additional throttle that takes effect when a store has 50,000 product variants. After this threshold is reached, no more than 1,000 new variants can be created per day.

 

Kamal_Berriga
Shopify Partner
16 0 0

A have 52K products , each product contain only one variant

Gregarican
Shopify Partner
1030 86 276

This is an accepted solution.

Okay, have you taken the time to read the replies I've made? As Shopify documentation clearly states, for shops over 50,000 total product variants (you have over that), only a maximum of 1,000 new product variants can be added per day via the API. And even then, it might sometimes be blocked based on other threads I've read in this community forum. If your shop is on the Plus plan this limit appears to be lifted.

 

Kamal_Berriga
Shopify Partner
16 0 0

Yes i see now , thank you so much for your help

Kamal_Berriga
Shopify Partner
16 0 0

Yes see, thank you so much for your help

zenerry
Shopify Partner
9 1 0

Hi everybody,

do you know how much time does last the blocking due to 429 exceed?

Thanks.