spotify / spotify-web-api-ts-sdk

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

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

Open dmmulroy opened 4 months ago

dmmulroy commented 4 months 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 4 months ago

same with pausePlayback and startResumePlayback

DopiGFX commented 4 months ago

Can confirm