Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

v1/me/player/currently-playing returning 403

Solved!

v1/me/player/currently-playing returning 403

Plan - Premium

Country - US

Operating System - Mac OS

 

My Question or Issue:

 

When attempting to deploy my code, I keep receiving an

HTTP Error for GET to https://api.spotify.com/v1/me/player/currently-playing message.

 

I've searched around the internet and have found no solutions to my issue.

 

I've pasted my code below for convenience: 

https://pastebin.com/MeRW4dEP 

 

If anyone has any suggestions to fix this issue, please let me know!

 

 

Reply

Accepted Solutions
Marked as solution

Hi

 

We've just rolled out a fix that addresses some issues related to 403 responses. Can you verify if the issue still persists?

 

/Ole

View solution in original post

3 Replies
Marked as solution

Hi

 

We've just rolled out a fix that addresses some issues related to 403 responses. Can you verify if the issue still persists?

 

/Ole

I think the same error is (still) returned on GET https://api.spotify.com/v1/me/player.

Do not use `prompt_for_user_token`; it's deprecated because the access token will not automatically be refreshed after an hour when it expires. You also did not include the scopes that you used in the code. Ensure that you are requesting the required scopes. Here's how to authorize your app:

spotify = spotipy.Spotify(
    auth_manager=SpotifyOAuth(
        client_id=client_id,
        client_secret=client_secret,
        redirect_uri=redirect_uri,
        scope=scope,
        username=username
    )
)

Suggested posts