-
Notifications
You must be signed in to change notification settings - Fork 27
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
Pagination goes into infinite loop when querying empty lists #71
Comments
I published the first commit with a wrong email, then i amended it with the correct email, sorry 😅 |
Hi @Skogsfrae, Thanks for pointing this! 💯🙇 Please free to make a PR on this repo so I can review & publish it to |
I'm having the same problem can give an example to stop it from looping again and again. This is the result.
The next API call should be stopped if the next null and items are empty |
@wittydeveloper are you still maintaining this package? |
@pavittar95 you can use my fork containing the fix if you want. |
Will take a look in |
When requesting a paginated resource with no values the paginator goes into an infinite loop of requests to the spotify api.
To reproduce the bug I made this query on a user with no public playlists
The api returns an empty list with
total=0
, but the!!iterator.total
condition inside theshouldStopIterate
function causes and infinite loop of requests.The text was updated successfully, but these errors were encountered: