Bungie-net / api

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

Inconsistent Paging Parameters #1909

Open dvillavicencio opened 5 days ago

dvillavicencio commented 5 days 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 5 days ago

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