-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
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
SpotifyWebAPIException: Missing or bad version tag #271
Comments
Hey! $api->deletePlaylistTracks(
'2uavw0Rfozgta0baWuK3dm',
[
'positions' => [
0,
1,
],
],
'NywxOTU1MGZiMmZhN2VhMzViMjMwMzIxMjQyYmQyODBjYzFlYWYxOGY1'
); |
I noticed it works again somehow. Will try if it keeps like this and share my findings. |
It worked for a week, now again Spotify refuses to delete songs. I get the error: I tried removing the snapShotID but that results in: My assumption is that the positions part is removed or not stable. It's a pity. Because now I have to give track id's, however that would remove probably duplicates too (which I don't want). |
It seems that I have the same issues calling a supported (at last api documentation) way. Like passing track id's. It might be an issue with the snapshotID then, which I get from a previous call to addPlaylistTracks.
|
I'm testing in the API console and there it still seems to work.
What I noticed. I get a snapshotId when I call I could get a recent snapshotId in the api console by calling:
This works in this PHP api too:
What I noticed it that the snapshotId I got back from addPlaylistTracks is really shorter then the one I got from deletePlaylistTracks. This happens in this PHP code as well as in the Spotify console.
So my current working workaround is:
|
I saw you're active in the thread on Spotify's forums. That was going to be my suggestion, to reach out there. But like you're saying there, it's really worrisome that the APIs change without any communication. |
Also having this problem with my little app (which has been working fine for years until lately), it uses the web api in this way:
Haven't tried your workaround yet @kasperkamperman, but will do that. |
Adding another issue that I'm finding here in case you are trying to remove tracks at a specific position. I confirm that Spotify ends up removing all appearances of the track in the playlist and the positions are ignored. This is bad when trying to remove duplicates, as there is no way to leave one instance of the track. |
I suddenly get an error when I'm deleting tracks. I didn't change any code or updated anything.
Which makes me assume something changes on the side of Spotify (couldn't find announcements though).
I delete tracks based on the positions:
I was checking the Spotify API documentation and this way of deleting is not documented (anymore):
https://developer.spotify.com/documentation/web-api/reference/remove-tracks-playlist
I looked quickly and it seems you didn't build anything to convert positions to spotify uri's. So, that might indeed indicate that there was a silent Spotify API change that remove this function?
The text was updated successfully, but these errors were encountered: