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

Checkpoint Pagination for Roles not supported #277

Closed
joberdick opened this issue Jun 11, 2021 · 2 comments
Closed

Checkpoint Pagination for Roles not supported #277

joberdick opened this issue Jun 11, 2021 · 2 comments
Labels
bug This points to a verified bug in the code

Comments

@joberdick
Copy link

Describe the problem

Some pagination no longer works with recent update to Auh0 API's. One example is https://auth0.com/docs/api/management/v2#!/Roles/get_role_user

It now requires checkpoint pagination for over 1000 users, which the SDK does not support. Not sure if there are other cases of this, but this is only one I am aware of.

What was the expected behavior?

To be able to query over 1000 objects when supported by the API

Reproduction

Make a call to get list of role members using:

def list_users(self, id, page=0, per_page=25, include_totals=True):

with more than 1000 users.

Error returned

auth0.v3.exceptions.Auth0Error: 400: Requesting page 10 exceeds the allowed maximum of 1000 records. To fetch results beyond 1000, use the checkpoint pagination method.

Environment

using 3.16.2

@frederikprijck
Copy link
Member

Thanks for reporting this and sorry for the inconvenience!

We are looking into this internally to see what has to happen in the different SDKs and how we can prioritize this.

We will get back to this as soon as possible with more information.

@frederikprijck frederikprijck added the bug This points to a verified bug in the code label Jun 17, 2021
@evansims
Copy link
Member

Hi @joberdick 👋 Thanks for your patience on this. This issue has been addressed with the addition of checkpoint pagination support in PR #278, and will be shipped in the next release. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This points to a verified bug in the code
Projects
None yet
Development

No branches or pull requests

3 participants