-
Notifications
You must be signed in to change notification settings - Fork 11
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
Limit pagination to 500 #13
Labels
enhancement
Improvement/change to existing functionality
Comments
@dtkaczyk can this be closed? |
I think so, yes. |
Reopening. https://api.ror.org/organizations?query=*&page=501 still returns an error. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Elasticsearch only allows paginating through 10,000 results per request. With a default per page of 20 that means 500 pages. Requesting page 501 will result in a 500 error: https://api.ror.org/organizations?query=*&page=501 (requesting page 500 works).
Suggested solution is to limit
page
to 500.The text was updated successfully, but these errors were encountered: