mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #97] Spotify denying access for valid Id #44
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#44
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 @patalanov on GitHub (Jun 6, 2016).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/97
I am trying to access Spotify playlists using the spotipy and pbl libraries. See http://pbl.readthedocs.io/en/latest/ for the latter.
I have this:
If I bypass the snippet relative to pbl methods and the pbl function call above and proceed, I am granted access.
Otherwise access is denied, and I get spotipy.oauth2.SpotifyOauthError: No client id
what is going on here? please help.
@stephanebruckert commented on GitHub (Jan 12, 2020):
It's not spotipy that is failing here but it is pbl. I should still be able to help you.
pbl is using the
Client Credentials Flowflow to get an API token as you can see heregithub.com/plamere/pbl@ae71c0b493/pbl/spotify_plugs.py (L415). It's not passing any client ID and secret as parameters, which means pbl is expecting that you setSPOTIPY_CLIENT_IDandSPOTIPY_CLIENT_SECRETas environment variables:So to run your program, you can do:
It should also fix https://github.com/plamere/pbl/issues/10