mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #240] This requires user authentication #125
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#125
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Loewkie on GitHub (Dec 22, 2017).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/240
I'm writing a bit of code which sorts a playlist by the "loudness" value of the tracks, but I;m running into authorization issues. I followed the oauth workflow explained in issue #194 but it doesn't seem to work. Here is the code:
I end up with the following error:
So obviously something goes wrong during the authentication process, but I don't understand where it all goes wrong.
@ritiek commented on GitHub (Dec 22, 2017):
Follow up of #230.
Here you are authorizing using
oauth2method, check out https://github.com/plamere/spotipy/issues/194#issuecomment-317192954:In your case, you're handling private methods (unfollowing and creating playlist) as well. So this won't work.
You should use the
utilmethod (just as you were in #230) to authorize and pass a relevant scope, I haven't tested but a scope of:should work.
@Loewkie commented on GitHub (Dec 22, 2017):
It's telling me insufficient scope but at least I've finally gotten the authorization process working now. I did in fact forget the scope variable which confused the API. I'll read into the scopes and see what I need to make this work.
@sheheryarbutt commented on GitHub (Jan 2, 2018):
I am having a similar issue but with creating a playlist, I tried what you guys said, it got rid of user authentication error but now gives this error on #242 if anyone can check it out and help me, would appreciate it!