rinukkusu / spotify-dart

A dart library for interfacing with the Spotify API.
BSD 3-Clause "New" or "Revised" License
206 stars 92 forks source link

Bug: startWithTracks results in error 400 #202

Closed ILikeRubberDuckies closed 7 months ago

ILikeRubberDuckies commented 7 months ago

When calling player.startWithTracks the api responds with error 400:"At least one of \"uri\" or \"position\" should be specified". This is probably caused by an empty offset-object that is being sent in the request.

Working:

{"context_uri":null,"uris":["spotify:track:id..."],"position_ms":0}

Resulting in error:

{"context_uri":null,"uris":["spotify:track:id..."],"offset":{},"position_ms":0}

Might be related to #187

hayribakici commented 7 months ago

@ILikeRubberDuckies yes, this is very much related to #187 . Thank you for pointing this out. Please use the depracated method playOrResume for now. I'll take a look at this asap.