mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 08:35:49 +03:00
[GH-ISSUE #59] Cannot authenticate due to bad authentication URL #29
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#29
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 @davecarpie on GitHub (Jun 28, 2015).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/59
When I try authenticate a user I get an unexplained error when visiting the authentication URL.
After investigating this I found that when urllib encodes a redirect URL it removes the 'http://' from the beginning e.g. 'http://davecarpie.github.io' becomes 'davecarpie.github.io' rather than 'http%3A%2F%2Fdavecarpie.github.io'.
I tried authenticating manually using the url with the http:// in it and was successful. When registering a new application Spotify also forces you to have the protocol in the URI so I'm fairly sure that is the reason authentication is unsuccessful.
Using the requests library encodes the URI properly so using that instead of urllib could work? I'm happy to make the change and submit a pull request if you want?
@davecarpie commented on GitHub (Jun 29, 2015):
Apologies, this was a mistake in my code. Please delete the issue if its how you manage this repo