Error code 500 when trying to retrieve a song from library
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Plan
Premium
Country
Device
Desktop
Operating System
Linux
My Question or Issue
I am trying to simply retrieve a song from my libary using the API, but I am receiving an error code 500.
import spotipy
from spotipy.oauth2 import SpotifyOAuth
scope = "user-library-read user-read-recently-played"
sp = spotipy.Spotify(auth_manager=SpotifyOAuth(client_id="<client_id>", client_secret="<client_secret>", redirect_uri="<redirect_uri>", scope=scope))
print(sp.current_user_saved_tracks(market="<market>", limit=1))
The above code results in the following error:
Max Retries, reason: too many 500 error responses
What's causing this issue?
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page