mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #380] problem creating playlist/adding tracks #225
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#225
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 @aced125 on GitHub (Jun 10, 2019).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/380
I am able to do the example where I can read one's saved tracks successfully (which requires authorisation).
However, when trying to create a playlist or modify it (I have included the relevant stuff in the scope), I get a http status: 405, code:-1 error. A link is then provided (https://api.spotify.com/v1/users/217plpxgwl26mxqkdifiyrndy?si=9cHjQNLQQOGzJQ6OuieIgQ/playlists:) saying no token is provided even though I think I have provided the token.
Here is my code:
Here is the error message:
Thanks in advance anyone who can help out!
@C3theo commented on GitHub (Jun 17, 2019):
I believe the issue is stemming from changes in Spotify's Playlist API.
@stephanebruckert commented on GitHub (Jan 13, 2020):
Looks like a duplicate, please read https://github.com/plamere/spotipy/issues/306#issuecomment-573900507
You shouldn't use
client_credentials_managerwithtoken, so this:should be:
@dursab commented on GitHub (May 23, 2020):
Hello, I am also trying to edit a playlist with Spotipy and get the same issue as described above :
http status: 405, code:-1
Here is the code that I'm using:
and here is the error message I receive:
All the process for the credentials seemed to work fine cause the all script is working until the very last line above :
So it seems that I can access everything but just not interact with it... could it be an issue link to the Authorization Flows? What I understand is that the Authorization Code is giving full access, is it what the prompt_for_user_token is doing?
I can see some similar issues but I couldn't find a way to make it works when following the indications given...
I believe that I'm using the Spotipy version 2.12.0 and python 3.8
Thanks in advance for anyone help!