Trouble retrieving all products

I’m using the products endpoint to retrieve all products (at this moment over 1700). I do this by making a request with a page size attribute of 25, then increase the page attribute by 1 each time I have products in my response. And then run the request again with the updated page attribute until I get no products anymore in my respons. This works well for the first 6 requests and then there are no more products returned for some reason. Could anyone point me in the right direction to solve this issue?

Nevermind. This was due to a small bug in the code. You can close or remove this topic.