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

Needs to Fix/Add/Re-approve Scopes

Solved!

Needs to Fix/Add/Re-approve Scopes

I am having an issue with several users that they are not able to successfully achieve their desired action.

 

Here is the error that appears in my logs:

HTTP Error for POST to https://api.spotify.com/v1/users/xxx(user_name)/playlists with Params: {} returned 403 due to Insufficient client scope

 

My inkling is that these users didn't complete the scope permissions process. Perhaps they logged into the Spotify redirect page. Now their user_id is recognized etc and they are technically logged into my app, but they still need to approve scopes.

 

Now, if they redirect to the Spotify page, they log in and don't have the opportunity to approve scopes. It seems as if their decision is stored. 

Reply

Accepted Solutions
Marked as solution

One thing you can try is to set "show_dialog" to true, as explained at this page.

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

View solution in original post

4 Replies
Marked as solution

One thing you can try is to set "show_dialog" to true, as explained at this page.

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Sounds like you're missing the playlist-modify-private and/or the playlist-modify-public scope on the user's access token.

You will need to recreate the user's token to add these scopes by taking them through the authorization flow once again with the correct scopes. They should be automatically prompted with the dialog during this as the scopes have changed.

This was the problem. A couple of users exited the Spotify redirect before they could approve the scope permissions.

Actually, the problem persists. The show_dialog suggestion was a good step and did what I thought it would do. However I misdiagnosed the problem that is the discussion topic. I will start a new topic.

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random