We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This was working up until recently, code hasn't changed but today I'm getting a 400.
Code:
await api.currentUser.tracks.saveTracks([track.id])
Response:
{"error": {"status": 400, "message": "Missing required field: ids" } }
Request:
Request URL: https://api.spotify.com/v1/me/tracks Request Method: PUT Status Code: 400 Bad Request
Looks like the payload is
["6QGeAZK8ot9IuiRe2tvIvx"]
Api docs: https://developer.spotify.com/documentation/web-api/reference/save-tracks-user
Looks like the payload body should be:
{ "ids": ["6QGeAZK8ot9IuiRe2tvIvx"] }
instead of just the raw array. Not sure what's changed here, if it's the API endpoint or what.
I'm on v1.2.0
The text was updated successfully, but these errors were encountered:
as a workaround for now incase others land here
api.makeRequest("PUT", "me/tracks", { ids: [track.id], })
instead of api.currentUser.tracks.saveTracks will work
api.currentUser.tracks.saveTracks
Sorry, something went wrong.
This also appears to be affecting the currentUser.albums.saveAlbums endpoint (and I expect the removeAlbums endpoint too).
currentUser.albums.saveAlbums
thanks for posting this issue, I didn't know why this error appeared
No branches or pull requests
This was working up until recently, code hasn't changed but today I'm getting a 400.
Code:
Response:
Request:
Looks like the payload is
Api docs: https://developer.spotify.com/documentation/web-api/reference/save-tracks-user
Looks like the payload body should be:
instead of just the raw array. Not sure what's changed here, if it's the API endpoint or what.
I'm on v1.2.0
The text was updated successfully, but these errors were encountered: