mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #253] Entering an invalid URL in spotipy.util.prompt_for_user_token() obfuscates the error #138
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#138
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 @pl4nty on GitHub (Feb 11, 2018).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/253
.oauth2.parse_response_code() returns None when an invalid authentication URL is given, which causes .oauth2.get_access_token to return a '400: Bad Gateway' error. This error could be related to any of the Request Access Token parameters, making it hard to track down.
Replacing the
return Nonewith something likeraise InvalidUrlError("Invalid URL")would make the error easier to trace.