mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #512] Error 404 #307
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#307
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 @hafraz07 on GitHub (Jun 13, 2020).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/512
Hi, I made this script to create a playlist based on my recently played tracks. This works for my own account but currently gets a 404 when my friend tries to run the script with his account. I don't know if I'm doing something wrong or if this is an issue with the library. Thanks
@stephanebruckert commented on GitHub (Jun 13, 2020):
Hi @hafraz07, on which line does your friend get a 404? the stack trace would be helpful also. Thanks
@hafraz07 commented on GitHub (Jun 13, 2020):
Here you go
@hafraz07 commented on GitHub (Jun 13, 2020):
It's still asking for a username or cache_path
@stephanebruckert commented on GitHub (Jun 13, 2020):
I'm really not sure why it displays this message, sorry. However this works well for me:
@lucas-campbell commented on GitHub (Jun 17, 2020):
I was having the same problem in addition to those mentioned in #503, and only after revoking access to a spotify app, so may be related? In any case, the fix for me was to give a specific cache_path when constructing the SpotifyOAuth object (maybe 'manually' forces a refresh of the token/permission?). E.g:
oauth = spotipy.oauth2.SpotifyOAuth(scope=scope, username=u, cache_path='./tokens.txt') sp = spotipy.Spotify(auth_manager=oauth)@stephanebruckert commented on GitHub (Jun 30, 2020):
@hafraz07 did the given solutions help?
@hafraz07 commented on GitHub (Jul 2, 2020):
I didn't specify a cache path but I specified an arbitrary constant username (username=u) and that seems to work
@stephanebruckert commented on GitHub (Aug 30, 2020):
Fixed in https://github.com/plamere/spotipy/pull/567
urllib'squoteto encode user ids in urls #307 #860