Trying to understand a problem: if I request GET
I receive 50 records, but if I try to raise the limit, using those endpoints:
I get nothing, zero, nada, zip, zilch products.
Here are the X-Request-IDs for some of those calls:
Version 2019-10 doesnt not support page based navigation through the resultset. You must consider switching to cursor based navigation - https://help.shopify.com/en/api/guides/paginated-rest-results. If you still want to use page based navigation you should use version 2019-04 in your URLs instead of 2019-10. The page based navigation will be completely removed in April 2020.
My goal here is to download everything, I don't really need "pagination", so I started testing it only using "limit", which is not working by itself.
The documentation for 2019-10 still shows "limit" and "since_id":
You can't get all in a single request, you'll have to paginate either way, unless you have less then 250 products. By the way, I have no issues getting 250 products in the results when using limit=250, though it's quite slow and the response weights megs. Are you testing using postman? Or a different client? Do you get a 200 http code in response and an empty JSON response?
Maybe that's the client that is cutting off the connection?
I know I can't get all in a single request, that's exactly why I was trying to use limit and since_id.
Everything works fine, I can get 50 records on a "query-less" /.../products.json request. But if I add "?limit=250" to the URL I get zero records.
Status responses of all requests are 200, even for the requests returning zero records (empty response body). The bigger difference I can spot is in the Content-Type:
Using /products.json it is "application/json; charset=utf-8"
Using /products.json?limit=250 it is "text/html; charset=utf-8", and the html has a "Continue" link
To move to the next page I'm now using query exactly the way I receive it back from the API on the "Link" header:
And this doesn't work either. Response status is 200, but the body is empty.
|an hour ago|
|an hour ago|
|2 hours ago|
|3 hours ago|
|4 hours ago|