You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the parameter market for player.getCurrentlyPlayingTrack should be required.
I've been the whole day dealing with a code 400 (bad request) response after using player.getCurrentlyPlayingTrack, I think the problem is that for the endpoint used (https://api.spotify.com/v1/me/player/currently-playing) the query parameter marketis required while player.getCurrentlyPlayingTrack takes it as an optional parameter.
After setting the market it started to work just fine:
I apologize if there is something I am overlooking 😅
The text was updated successfully, but these errors were encountered:
miguel-martinr
changed the title
player.getCurrentlyPlaying triggers a 400 response
player.getCurrentlyPlayingTrack triggers a 400 response
Sep 8, 2021
I think the parameter
market
forplayer.getCurrentlyPlayingTrack
should be required.I've been the whole day dealing with a code 400 (bad request) response after using
player.getCurrentlyPlayingTrack
, I think the problem is that for the endpoint used (https://api.spotify.com/v1/me/player/currently-playing
) the query parametermarket
is required whileplayer.getCurrentlyPlayingTrack
takes it as an optional parameter.After setting the
market
it started to work just fine:I apologize if there is something I am overlooking 😅
The text was updated successfully, but these errors were encountered: