You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are no developers working on this project at this moment so, it will take few months (2 or 3) for me to restart this (because of my personal problems). If you could, you can do a pull request fixing this issue.
Bug Report
The PlaylistManager.removeItems() method uses a deprecated format for the request.
What i expected:
The DELETE request to succeed and the track to be deleted.
What actually happened:
I get the error message
SpotifyAPIError: {"error":{"status":400,"message":"JSON body doesn't conform to specification"}}
Upon investigating I found that the call looks like this:
Note the "uris" before the array of track objects.
The Spotify API docs describe the API as expecting this format:
"tracks": [ { "uri": "string" } ],
(Source)
Which causes the issue.
To reproduce this bug:
Create a client (here I do it with an existing refresh token):
Then use the removeItems method to make the DELETE request to the API:
Anyway, thanks for your work! It’s made my life easier in the instances where it does work.
The text was updated successfully, but these errors were encountered: