Cursor-based pagination never ends, repeating the same page

We are currently unable to page through the response as the page_info token in the Response Header (i.e. “Link”) is always returning the same value (taking us for an INFINITE LOOP)

The API is telling us that:

  • there are more pages to consume (via rel=“next” in the Response Header) and
  • the next page is the exact same page that I just consumed (since the"Next Page Token" remain the same)

At 03 Jul 2020 23:43:26 GMT I am making this exact request (using the page_info token from my prior request):

$ curl -v --location --request GET ‘https://{{MYSTORE}}.myshopify.com/admin/api/2020-01/orders.json?limit=5&fields=id,%20updated_at&page_info={{PAGE2TOKEN}}’ --header 'Authorization: Basic {{MY-AUTH-TOKEN}}= ’
The “Link” Response Header value is:
< Link:>

The “Next Page Token” (i.e. page_info demarcated by rel=“next”) is exactly the same as the page_info I provided in the original request!

Here’s the X-Request-ID if anyone at Shopify is interested:

  • 0c6b87eb-3dba-4c92-9637-7e1bb196f745

We are having the same issue with our major customers

Here’s the original post with a little more detail:

The post with this solution is archived. Can you summarize it here?