spotify / web-api

This issue tracker is no longer used. Join us in the Spotify for Developers forum for support with the Spotify Web API ➡️ https://community.spotify.com/t5/Spotify-for-Developers/bd-p/Spotify_Developer
981 stars 79 forks source link

504 on offsets over 10k #809

Open happy-machine opened 6 years ago

happy-machine commented 6 years ago

Issue found on February 19th 2015.

Endpoint(s):

Scope(s):

Steps to reproduce:

My code searches for tracks on playlists, getting 504 on searches with offset set to over 10000. Have found lots of other complaints about this specific issue online. The API docs state the limit is 100 000

Expected behaviour:

Actual behaviour:

504 Server Error (consistently)

dotfield commented 6 years ago

It has worked for me until today. Suddenly I also hit a 10000 limit. That is not enough, there are more than 10000 releases and I can't filter them by number of tracks in my search.

I only want releases with 4 tracks or fewer.

hughrawlinson commented 6 years ago

Thanks for the report @happy-machine. Should definitely not return a 504. I'll bring this up with the team.

happy-machine commented 6 years ago

Thanks man 😊 seen lots of people moaning about this when searching around at the time so i think its affecting other peeps too

shillshocked commented 5 years ago

It used to be 100,000, which was also not enough if we want to get a year's releases.

There are over 1,000,000 characters in the unicode standard library. Are you suggesting we do 1,000,000 requests to find ALL new releases using tag:new?

This workaround might find most releases in English. There are still about 4,000 songs though it doesn't work on under tag:new because they use special characters, or non-Latin languages like Chinese, Japanese, Korean, Arabic, etc. What is the solution for users of every other language besides English?

The easy solution if Spotify wants to be lazy is to allow us to search by release day (like Napster), not just once every two weeks. Then all this monkeying around with substrings will be less of an issue. What is proposed now is an ethnocentric solution that doesn't address non-English spotify users, artists, albums, playlists and songs.