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

Spotify SDK return 1001

Solved!

Spotify SDK return 1001

Hi,

 

When Player.play is called for a trackId on the Andriod Spotify SDK, it returns 1001 (Country not supported) error randomly. This is because the available_markets array do not contain the supported country. This is very random and interrupts audio playback.

 

This is very random and happens for different Track IDs, but works fine sometimes. It interrupts Spotify playback and results in a bad user experience.

 

Example:

 

{"external_urls":{"spotify":"https:\/\/open.spotify.com\/track\/4RGZiy0ClmIn8EIlPYFZO0"},"available_markets":[],"preview_url":"https:\/\/p.scdn.co\/mp3-preview\/c612f670960d6757cd13181412b64099b040bf59","external_ids":{"isrc":"USCRP1300449"},"album":{"id":"6VBGbOLlJvJe9C6EpIBMbo","external_urls":{"spotify":"https:\/\/open.spotify.com\/album\/6VBGbOLlJvJe9C6EpIBMbo"},"available_markets":[],"name":"Long Live Love A$AP","images":[{"url":"https:\/\/i.scdn.co\/image\/cd52cb9d05c7fd5c325e46b7739546538f56223c","width":640,"height":640},{"url":"https:\/\/i.scdn.co\/image\/d8925124721493ec3edddae0f4f5c87f39b07c15","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/605548bde05205c5ec6c2167a1b11d1f84921b49","width":64,"height":64}],"type":"album","album_type":"album","uri":"spotify:album:6VBGbOLlJvJe9C6EpIBMbo","href":"https:\/\/api.spotify.com\/v1\/albums\/6VBGbOLlJvJe9C6EpIBMbo"},"duration_ms":214880,"type":"track","uri":"spotify:track:4RGZiy0ClmIn8EIlPYFZO0","track_number":24,"id":"4RGZiy0ClmIn8EIlPYFZO0","artists":[{"id":"6gglFuG4YswdVugY1BUiWA","external_urls":{"spotify":"https:\/\/open.spotify.com\/artist\/6gglFuG4YswdVugY1BUiWA"},"type":"artist","uri":"spotify:artist:6gglFuG4YswdVugY1BUiWA","href":"https:\/\/api.spotify.com\/v1\/artists\/6gglFuG4YswdVugY1BUiWA","name":"ASAP Rockie"}],"disc_number":1,"explicit":false,"name":"Toast to the Gods","href":"https:\/\/api.spotify.com\/v1\/tracks\/4RGZiy0ClmIn8EIlPYFZO0","popularity":0}

Reply

Accepted Solutions
Marked as solution

This community is primarily for end user support only. You may get better answers over on Stack overflow since that tends to be where developer support for the Spotify SDK lives.

https://developer.spotify.com/support/

Peter
Spotify Community Mentor and Troubleshooter

Spotify Last.FM Twitter LinkedIn Meet Peter Rock Star Jam 2014


If this post was helpful, please add kudos below!

View solution in original post

1 Reply
Marked as solution

This community is primarily for end user support only. You may get better answers over on Stack overflow since that tends to be where developer support for the Spotify SDK lives.

https://developer.spotify.com/support/

Peter
Spotify Community Mentor and Troubleshooter

Spotify Last.FM Twitter LinkedIn Meet Peter Rock Star Jam 2014


If this post was helpful, please add kudos below!

Suggested posts