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

502 Server Error when trying to save albums after hitting the 10,000 track limit #1113

Open JoeCotellese opened 5 years ago

JoeCotellese commented 5 years ago

Issue found on 12/18/2018

Endpoint(s):

Scope(s):

Steps to reproduce:

  1. Open the API Console
  2. Call the Save Albums for Current User endpoint with the default album ids in the 'ids' field
  3. Click Try It

After going through the authorization step built into the developer console the API returns and error.

Expected behaviour:

The results as defined by https://developer.spotify.com/documentation/web-api/reference/library/save-albums-user/

Actual behaviour:

502 Server Error (consistently)

{
  "error": {
    "status": 502,
    "message": "Something went wrong"
  }
}
JoeCotellese commented 5 years ago

Some more information here. I just manually removed some albums from my Spotify library via the desktop application. Re ran the test and it passed.

This was all so I could use it in a python script. I'm rerunning the script and things were chugging along for a while and now have begun to fail again. Is there a limit to the total number of saved albums?

JoeCotellese commented 5 years ago

Ok, I just confirmed the limits. I tried to add an album via the desktop application and hit the following error message.

image

So it seems like the API should properly return when you can't add another album to a library (and also document the limits)

0xNF commented 5 years ago

For the benefit of the rest of us, what was the limit you hit, and are you a premium subscriber? I don't think account type affects limits, but it might.

JoeCotellese commented 5 years ago

I am a premium subscriber and I believe the limit is 10,000 saved tracks. It's not a hard limit on albums since obviously they have different track lengths.

Spotify really needs to decouple saved albums from saved tracks.

The API team needs to return a more useful error message when you hit this limit.

bih commented 5 years ago

Hello @JoeCotellese,

Thanks for opening this ticket. I agree that we should be returning a more clearer response than Something went wrong when you've hit the 10,000 track limit. I'll raise this to the team as a bug.

0xNF commented 5 years ago

While we're putting in bug reports, can we file one for the 10,000 track limit?

ethanbeyer commented 5 years ago

Ran into the same issue, still would love a better error message than "Something went wrong".