List of customers Bad Gateway 502

Shopify Partner
4 0 0

Hello There,


I am trying to fetch the Retrieves a list of customers API with pagination because I have a +13k customer list to pull.

My script does handle the 2 request/per second rate limit and also in every request a limit of 250 rows.


The script does work for small customers like 200/300 but for some reason for the +13k customer list the API return Bad Gateway(502).


Here is an example of the header retrieved from the first request. My script strips out the and uses the link provided to make the request.

https://{MYSHOP}>; rel="next"

My aim is to request over and over until there is no `next` link, as the pagination doc advises.


Can I have some help understanding why work for small batches a not for a larger batch of customers?

Replies 0 (0)