<?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 Infinite rate limit in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Infinite-rate-limit/m-p/6599746#M16366</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;Brazil&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;PC&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Windows 11&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have a personal project that uses spotipy to get the img link from a song and colorthief to get its dominant color. It makes a call for the current_user_playing_track once a second.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Yesterday i left it running in the background while playing some songs and today when i woke up it no longer works. No error codes, nothing, it just doesn't work. I have tried using logging to see what's going on and it seems i'm getting rate limited, which is weird, because isn't it supposed to reset every 30 seconds? What's happening?&lt;BR /&gt;Even on this simple code i still get 429. What is happening?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import os
import spotipy
from spotipy.oauth2 import SpotifyOAuth
import logging

scope = "user-read-currently-playing"
os.environ['SPOTIPY_CLIENT_ID'] = 'CLIENT-ID'
os.environ['SPOTIPY_CLIENT_SECRET'] = 'CLIENT-SECRET'
os.environ['SPOTIPY_REDIRECT_URI'] = 'http://localhost:1234/'

sp = spotipy.Spotify(auth_manager=SpotifyOAuth(scope=scope))

logging.basicConfig(level=logging.DEBUG)
print(sp.current_user_playing_track())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 21 Dec 2024 19:37:03 GMT</pubDate>
    <dc:creator>nightfulll2</dc:creator>
    <dc:date>2024-12-21T19:37:03Z</dc:date>
    <item>
      <title>Infinite rate limit</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Infinite-rate-limit/m-p/6599746#M16366</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;Brazil&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;PC&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Windows 11&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have a personal project that uses spotipy to get the img link from a song and colorthief to get its dominant color. It makes a call for the current_user_playing_track once a second.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Yesterday i left it running in the background while playing some songs and today when i woke up it no longer works. No error codes, nothing, it just doesn't work. I have tried using logging to see what's going on and it seems i'm getting rate limited, which is weird, because isn't it supposed to reset every 30 seconds? What's happening?&lt;BR /&gt;Even on this simple code i still get 429. What is happening?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import os
import spotipy
from spotipy.oauth2 import SpotifyOAuth
import logging

scope = "user-read-currently-playing"
os.environ['SPOTIPY_CLIENT_ID'] = 'CLIENT-ID'
os.environ['SPOTIPY_CLIENT_SECRET'] = 'CLIENT-SECRET'
os.environ['SPOTIPY_REDIRECT_URI'] = 'http://localhost:1234/'

sp = spotipy.Spotify(auth_manager=SpotifyOAuth(scope=scope))

logging.basicConfig(level=logging.DEBUG)
print(sp.current_user_playing_track())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Dec 2024 19:37:03 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Infinite-rate-limit/m-p/6599746#M16366</guid>
      <dc:creator>nightfulll2</dc:creator>
      <dc:date>2024-12-21T19:37:03Z</dc:date>
    </item>
  </channel>
</rss>

