Skip to content
This repository has been archived by the owner. It is now read-only.

Unable to iterate over search results #225

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

Unable to iterate over search results #225

restfulmt opened this issue Apr 29, 2016 · 1 comment

Comments

@restfulmt
Copy link

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

@asmitter 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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants