mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #276] prompt_for_user_token parses url incorrectly #153
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#153
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 @CurtisHolick on GitHub (Apr 20, 2018).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/276
When I run this:
import spotipy.util as utiltoken = util.prompt_for_user_token('MU_USERNAME', scope='user-library-read', client_id='MY_CLIENT_ID', client_secret='MY_CLIENT_SECRET', redirect_uri='http://localhost/')and insert the url from the browser into the prompt, it incorrectly parses it. The url only had the code value, and not whatever is supposed to come after the
&. It worked after I added an&to the end of my url, and I am not sure if this is unique to me, but it seems like this is an error.I found the url is parsed in
oauth2.pyline 188, and this is caused because it tries remove everything before the code, and everything after the&(including it), but there was no&.@76MPaul commented on GitHub (May 25, 2018):
Idem for me, will try to find another way.
@mattcole19 commented on GitHub (Jul 3, 2018):
Have the same issue