mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #279] TypeError in the oauth2.py - Can't create token #152
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#152
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 @basophobic on GitHub (Apr 22, 2018).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/279
Hello,
I'm trying to run a simple example that returns my spotify playlists, but it seems I can't get pass the authentication phase succesfully. In particular, the script requests from me to enter the URL that redirects me, which when inserted, the following error is occured:
The script I try to run is a very simple one, taken from the example section:
I'm currently running on python 3.6.3 on a Linux machine. Any suggestions?
@kylegbakker commented on GitHub (Apr 23, 2018):
What is the URL you are entering?
@basophobic commented on GitHub (Apr 23, 2018):
I have used http://localhost/ as calback in spotify developer.
@ritiek commented on GitHub (Apr 23, 2018):
I think there is a problem with the way you are authenticating yourself. I believe it should be something like:
@c0de-fox commented on GitHub (Apr 24, 2018):
Ensure that you have exported your redirect_uri, client ID, and secret before running your script and trying to authenticate. If you don't pass the values directly to the util.prompt_for_user_token function, it will read them from the environment.
Try running these in your terminal before running your script
export SPOTIPY_CLIENT_ID="YOUR CLIENT ID"export SPOTIPY_CLIENT_SECRET="YOUR CLIENT SECRET"export SPOTIPY_REDIRECT_URI='http://localhost/'@stephanebruckert commented on GitHub (Jan 1, 2020):
Thanks for your answers @ritiek and @alopexc0de, that seems right, closing.