mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
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#269
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 @MatthiasHerp on GitHub (Apr 4, 2020).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/464
I'm currently writing a code to delete specific tracks out of a Spotify Playlist I created, and thus that I own. But somehow I am having Issues with the token, although I am using the 'playlist-modify-public' token which should allow me to delete tracks in my own playlists.
And I checked that the playlist is publicly seen since it is available under public playlists of my account.
Would greatly appreciate your help :)
I get this error message by the link in the error code:
{
"error": {
"status": 401,
"message": "No token provided"
}
}
My Code:
Spotipy_delete_tracks.txt
Spotipy Authorization Scopes overview:
https://developer.spotify.com/documentation/general/guides/scopes/#playlist-modify-public
@stephanebruckert commented on GitHub (Apr 4, 2020):
In the code file I can see a 403 not a 401, which error do you actually have?
Edit: Okay sorry, the link from the error is not usable without a token, so yes you'll always get a 401 - no token provided
Then can you print the result of
sp.me()and confirm your user ID is11136043288?@MatthiasHerp commented on GitHub (Apr 5, 2020):
@stephanebruckert thanks for the advice. I tried the sp.me() and realized that it was an issue with my account. I used to have the account with my brother and we split it up somehow.
So I made a new account and a new application and now it works :)
Thanks for the quick help 👍