Did you find this article helpful?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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}
Solved! Go to Solution.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page