Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent Paging Parameters #1909

Open
dvillavicencio opened this issue Jun 27, 2024 · 2 comments
Open

Inconsistent Paging Parameters #1909

dvillavicencio opened this issue Jun 27, 2024 · 2 comments

Comments

@dvillavicencio
Copy link

dvillavicencio commented Jun 27, 2024

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
Copy link

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

@dvillavicencio
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants