spotify / spotify-web-api-ts-sdk

A Typescript SDK for the Spotify Web API with types for returned data.
Other
350 stars 66 forks source link

Add Item to Playback Queue no longer returns valid JSON and is breaking the client #119

Open dmmulroy opened 1 month ago

dmmulroy commented 1 month ago

A change must have been made to the Add Item to Playback Queue api endpoint as it now returns text, just the track id, and this library makes the assumption that all endpoints return valid json. This is causing a SyntaxError to be throw when JSON.parse is called here: https://github.com/spotify/spotify-web-api-ts-sdk/blob/main/src/serialization/DefaultResponseDeserializer.ts#L8

image

Mergemat commented 1 month ago

same with pausePlayback and startResumePlayback

DopiGFX commented 1 month ago

Can confirm