mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #641] Permissions Missing #383
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#383
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 @threadoooor on GitHub (Feb 14, 2021).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/641
I have the following code set up. It runs without errors.
try:
token = util.prompt_for_user_token(username)
except:
scope = 'user-read-private user-read-playback-state user-modify-playback-state'
os.remove(f".cache-{username}")
token = util.prompt_for_user_token(username, scope)
spotifyObject = spotipy.Spotify(auth=token)
However, I am trying to use voice commands to do things such as skipping songs. I have the following set up:
elif 'skip this song' in command:
talk('skipping')
spotifyObject.next_track(device_id='0d1841b0976bae2a3a310dd74c0f3df354899bc8')
I get an error "Permissions missing, reason: None" which makes no sense because the scope should be set up correctly.
@threadoooor commented on GitHub (Feb 14, 2021):
Nevermind, I had to re-authorize my program