-
Notifications
You must be signed in to change notification settings - Fork 151
Open
Description
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).
Fatal error: Uncaught SpotifyWebAPI\SpotifyWebAPIException: Missing or bad version tag in <redacted>/vendor/jwilsson/spotify-web-api-php/src/Request.php:47
Stack trace:
#0 <redacted>/vendor/jwilsson/spotify-web-api-php/src/Request.php(243): SpotifyWebAPI\Request->handleResponseError()
#1 <redacted>/vendor/jwilsson/spotify-web-api-php/src/Request.php(131): SpotifyWebAPI\Request->send()
#2 <redacted>/vendor/jwilsson/spotify-web-api-php/src/SpotifyWebAPI.php(122): SpotifyWebAPI\Request->api()
#3 <redacted>/vendor/jwilsson/spotify-web-api-php/src/SpotifyWebAPI.php(571): SpotifyWebAPI\SpotifyWebAPI->sendRequest()
#4 <redacted>/cronfresh.php(357): SpotifyWebAPI\SpotifyWebAPI->deletePlaylistTracks()
#5 <redacted>/cronfresh.php(231): addTrackToDestination()
#6 {main}
thrown in <redacted>/vendor/jwilsson/spotify-web-api-php/src/Request.php on line 47
I delete tracks based on the positions:
$positionsToRemove = [
[positions] => [
[0] => 0
[1] => 1
[2] => 2
[3] => 3
[4] => 4
]
]
$api->deletePlaylistTracks($destinationId, $positionsToRemove, $snapShotId);
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels