<?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 Huge Discrepancy Between Retry-After and Rate-Limit-Reset Headers in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Huge-Discrepancy-Between-Retry-After-and-Rate-Limit-Reset/m-p/6814550#M17252</link>
    <description>&lt;P&gt;Hey Spotify team/community,&lt;BR /&gt;&lt;BR /&gt;I'm working on a Discord bot that tracks new music releases for users from artists they follow or listen to frequently.&lt;BR /&gt;Been running into some weird rate limiting issues lately that I can't figure out.&lt;BR /&gt;My bot got rate limited for the first time today and I noticed something strange in the response headers.&lt;BR /&gt;The Retry-After header said 71943 seconds (that's almost 20 hours!), but the X-RateLimit-Reset header indicated the limit would reset in just 58 minutes.&lt;BR /&gt;&lt;BR /&gt;This is super confusing.&lt;BR /&gt;Which value should I actually respect? Is there a bug in one of these headers or are they meant to represent different things?&lt;BR /&gt;&lt;BR /&gt;Some context on how I'm using the API:&lt;BR /&gt;- I'm calling various endpoints like /me/following, /me/top/artists, and /artists/{id}/albums&lt;BR /&gt;- The bot checks for new releases about once per hour for artists that users follow&lt;BR /&gt;- I've implemented proper backoff strategies and caching&lt;BR /&gt;- When rate limited, I pause requests and wait for the specified time before retrying&lt;BR /&gt;&lt;BR /&gt;This happened specifically when calling: /artists/1C3qb5czyoPMhiTRFM86EQ/albums?include_groups=album,single,compilation&amp;amp;limit=20&lt;BR /&gt;The status was 429 with a Retry-After of 71943 seconds, which seems excessively long compared to the reset time.&lt;BR /&gt;&lt;BR /&gt;Any insights on what's happening here would be really helpful.&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Sun, 09 Mar 2025 23:10:46 GMT</pubDate>
    <dc:creator>ImYuma</dc:creator>
    <dc:date>2025-03-09T23:10:46Z</dc:date>
    <item>
      <title>Huge Discrepancy Between Retry-After and Rate-Limit-Reset Headers</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Huge-Discrepancy-Between-Retry-After-and-Rate-Limit-Reset/m-p/6814550#M17252</link>
      <description>&lt;P&gt;Hey Spotify team/community,&lt;BR /&gt;&lt;BR /&gt;I'm working on a Discord bot that tracks new music releases for users from artists they follow or listen to frequently.&lt;BR /&gt;Been running into some weird rate limiting issues lately that I can't figure out.&lt;BR /&gt;My bot got rate limited for the first time today and I noticed something strange in the response headers.&lt;BR /&gt;The Retry-After header said 71943 seconds (that's almost 20 hours!), but the X-RateLimit-Reset header indicated the limit would reset in just 58 minutes.&lt;BR /&gt;&lt;BR /&gt;This is super confusing.&lt;BR /&gt;Which value should I actually respect? Is there a bug in one of these headers or are they meant to represent different things?&lt;BR /&gt;&lt;BR /&gt;Some context on how I'm using the API:&lt;BR /&gt;- I'm calling various endpoints like /me/following, /me/top/artists, and /artists/{id}/albums&lt;BR /&gt;- The bot checks for new releases about once per hour for artists that users follow&lt;BR /&gt;- I've implemented proper backoff strategies and caching&lt;BR /&gt;- When rate limited, I pause requests and wait for the specified time before retrying&lt;BR /&gt;&lt;BR /&gt;This happened specifically when calling: /artists/1C3qb5czyoPMhiTRFM86EQ/albums?include_groups=album,single,compilation&amp;amp;limit=20&lt;BR /&gt;The status was 429 with a Retry-After of 71943 seconds, which seems excessively long compared to the reset time.&lt;BR /&gt;&lt;BR /&gt;Any insights on what's happening here would be really helpful.&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 09 Mar 2025 23:10:46 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Huge-Discrepancy-Between-Retry-After-and-Rate-Limit-Reset/m-p/6814550#M17252</guid>
      <dc:creator>ImYuma</dc:creator>
      <dc:date>2025-03-09T23:10:46Z</dc:date>
    </item>
  </channel>
</rss>

