Bungie-net / api

Resources for the Bungie.net API
Other
1.22k stars 92 forks source link

Inconsistent Paging Parameters #1909

Open dvillavicencio opened 4 months ago

dvillavicencio commented 4 months ago

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!

delphiactual commented 4 months ago

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

dvillavicencio commented 4 months ago

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.