Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Web Playback SDK reports a different album uri to the one requested to play via api

Web Playback SDK reports a different album uri to the one requested to play via api

I am creating a Spotify web app using the Web Playback SDK and the Spotify API.

 

When I make a request to play an album via the API with `context_uri: <uri of album>`, I sometimes then have my web player report a different album uri as being played when reading the player's state either via the `player_state_changed` event or `getCurrentState()`.

 

For example, when playing the album `4KnFXX4nObGw6rq9aQmSyf`, the player reports that the album being played is `2y2QZ4uDpzoZHgH2il5Ktu`.

 

These both seem to open on Spotify to the same album:

https://open.spotify.com/album/4KnFXX4nObGw6rq9aQmSyf 

https://open.spotify.com/album/2y2QZ4uDpzoZHgH2il5Ktu 

 

The first link correctly shows the album as favourited on my account, and the second does not.

 

This only happens on a minority of albums. The vast majority work as expected.

 

What is going on here? Is this a bug on Spotify's side?

Reply
1 Reply

This is usually due to the Spotify feature known as track relinking - https://developer.spotify.com/documentation/general/guides/track-relinking-guide/

Suggested posts