api icon indicating copy to clipboard operation
api copied to clipboard

Inconsistent Paging Parameters

Open deahtstroke opened this issue 1 year ago • 2 comments

I was using the POST endpoint for finding users by prefix and I noticed something weird when reading the responses from the API. Whenever a user prefix has more than one page of results the hasMore field is always true. I was searching for the name Sage and it has 5 pages worth of data, however when you try to receive the 6th page it returns an HTTP 500 status saying that there's no more resources to be found.

Page 5

image

Page 6

image

I'm also curious as to what people have done to circumvent this issue, any pointers would be helpful!

deahtstroke avatar Jun 27 '24 23:06 deahtstroke

count how many are on each page, if the page has less than 100 there is no next page

delphiactual avatar Jun 28 '24 11:06 delphiactual

That might not work, the input I'm using for the prefix is "Sage" and I'm still getting inconsistent numbers across the number of users in each page. Getting 26 results on Page 0, 23 results in Page 1, 23 results in Page 2 and 24 results in Page 3.

deahtstroke avatar Jul 12 '24 06:07 deahtstroke