Announcements

Help Wizard

Step 1

NEXT STEP

Who Me Too'd this topic

Error code 500 when trying to retrieve a song from library

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?

Who Me Too'd this topic