Plan
Premium
Country
Brazil
Device
PC
Operating System
Windows 11
My Question or Issue
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.
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?
Even on this simple code i still get 429. What is happening?
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())