[GH-ISSUE #641] Permissions Missing #383

Closed
opened 2026-02-27 23:22:19 +03:00 by kerem · 1 comment
Owner

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.

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.
kerem 2026-02-27 23:22:19 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@threadoooor commented on GitHub (Feb 14, 2021):

Nevermind, I had to re-authorize my program

<!-- gh-comment-id:778710517 --> @threadoooor commented on GitHub (Feb 14, 2021): Nevermind, I had to re-authorize my program
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#383
No description provided.