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

Unable to iterate over search results #225

Closed
restfulmt opened this Issue Apr 29, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@restfulmt
Copy link

restfulmt commented Apr 29, 2016

Hi,

The number of total results of searches differs depending on the value of offset and limit. For instance:

Make the following request:
https://api.spotify.com/v1/search?query=redhouse&offset=0&limit=20&type=album

The response returns albums.total=27 and 20 items.

Make another request using the albums.next URI:
https://api.spotify.com/v1/search?query=redhouse&offset=20&limit=20&type=album

The response returns albums.total=21 and 1 item. (6 missing items!)

Make the same request with offset=0 and limit=30
https://api.spotify.com/v1/search?query=redhouse&offset=0&limit=30&type=album

The response returns albums.total=27 and 27 items, which is correct.

I reported this as a bug (#201) but I can't sill find a reliable way to iterate over the results of a search. I would apprecitate any support on this.

Thanks for looking into this.

@asmitter

This comment has been minimized.

Copy link
Member

asmitter commented May 17, 2016

We've rolled out a fix which should stabilise this, and I ran your examples successfully.
Thanks for the detailed report.

@asmitter asmitter closed this May 17, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.