<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Getting saved tracks returns inconsistent result for different offsets in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Getting-saved-tracks-returns-inconsistent-result-for-different/m-p/5397740#M4921</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;GB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It's dev API&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;N/A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Last 2-3 days I started observing a strange behaviour - I'm requesting all the saved tracks for a user and for some of requests the API returns an empty result even though there ARE tracks in the range.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, this is logs from my app:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Response: href=https://api.spotify.com/v1/me/tracks?offset=200&amp;amp;limit=50, limit=50, next=null, offset=200, previous=https://api.spotify.com/v1/me/tracks?offset=150&amp;amp;limit=50, total=0, items.length=0

Response: href=https://api.spotify.com/v1/me/tracks?offset=250&amp;amp;limit=50, limit=50, next=https://api.spotify.com/v1/me/tracks?offset=300&amp;amp;limit=50, offset=250, previous=https://api.spotify.com/v1/me/tracks?offset=200&amp;amp;limit=50, total=2272, items.length=50&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Note here that the second response that has higher offset (250) has some tracks, but the previous request doesn't have any tracks and even its `total` field is empty.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Can you fix the API please? It's really annoying getting such gliches due wrong deploy and fix the app time to time although nothing has changed, and as soon as the issue still persist after a few days you aren't even noticed about that by your metrics or alerts.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jun 2022 20:38:53 GMT</pubDate>
    <dc:creator>timocov</dc:creator>
    <dc:date>2022-06-24T20:38:53Z</dc:date>
    <item>
      <title>Getting saved tracks returns inconsistent result for different offsets</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Getting-saved-tracks-returns-inconsistent-result-for-different/m-p/5397740#M4921</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;GB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It's dev API&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;N/A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Last 2-3 days I started observing a strange behaviour - I'm requesting all the saved tracks for a user and for some of requests the API returns an empty result even though there ARE tracks in the range.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, this is logs from my app:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Response: href=https://api.spotify.com/v1/me/tracks?offset=200&amp;amp;limit=50, limit=50, next=null, offset=200, previous=https://api.spotify.com/v1/me/tracks?offset=150&amp;amp;limit=50, total=0, items.length=0

Response: href=https://api.spotify.com/v1/me/tracks?offset=250&amp;amp;limit=50, limit=50, next=https://api.spotify.com/v1/me/tracks?offset=300&amp;amp;limit=50, offset=250, previous=https://api.spotify.com/v1/me/tracks?offset=200&amp;amp;limit=50, total=2272, items.length=50&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Note here that the second response that has higher offset (250) has some tracks, but the previous request doesn't have any tracks and even its `total` field is empty.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Can you fix the API please? It's really annoying getting such gliches due wrong deploy and fix the app time to time although nothing has changed, and as soon as the issue still persist after a few days you aren't even noticed about that by your metrics or alerts.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 20:38:53 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Getting-saved-tracks-returns-inconsistent-result-for-different/m-p/5397740#M4921</guid>
      <dc:creator>timocov</dc:creator>
      <dc:date>2022-06-24T20:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting saved tracks returns inconsistent result for different offsets</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Getting-saved-tracks-returns-inconsistent-result-for-different/m-p/5397984#M4923</link>
      <description>&lt;P&gt;Same here. For the last few days calls to&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://api.spotify.com/v1/me/tracks" target="_blank"&gt;https://api.spotify.com/v1/me/tracks&lt;/A&gt;&amp;nbsp;with an offset has randomly return a Code 200 response, but with an empty track array. This absolutely should not happen, because my app had no way of knowing that something was wrong and several automated processes **bleep** up because of it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jun 2022 15:06:07 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Getting-saved-tracks-returns-inconsistent-result-for-different/m-p/5397984#M4923</guid>
      <dc:creator>nicowelles</dc:creator>
      <dc:date>2022-06-25T15:06:07Z</dc:date>
    </item>
  </channel>
</rss>

