mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #225] Authorisation Code Flow Issues #117
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#117
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 @stingrai24 on GitHub (Oct 27, 2017).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/225
I have been following the documentation at http://spotipy.readthedocs.io/en/latest/ and I have managed to get Client Credentials Flow to work, meaning that I can write code which accesses public areas of Spotify. However, when trying to authorise personal accounts through Authorisation Code Flow, I keep getting the same error: "spotipy.oauth2.SpotifyOauthError: Bad Request" .
I have followed the instructions exactly, so I do not know what I have done wrong. Could someone please help?
@ritiek commented on GitHub (Oct 27, 2017):
It would be much more easier to debug if you were to share your code snippet (of course removing any sensitive data). 😄
@stingrai24 commented on GitHub (Oct 27, 2017):
This is the code and the error I get:
The error is:
spotipy.oauth2.SpotifyOauthError: Bad Request@ritiek commented on GitHub (Oct 27, 2017):
Please edit your post to remove your client id and client secret. Be sure to revoke them too.
@stingrai24 commented on GitHub (Oct 27, 2017):
Thanks, didn't notice I'd left that in aha!
Any idea what's causing the error?
@stingrai24 commented on GitHub (Oct 27, 2017):
Never mind, found the error! It was to do with my terminal being configured to open a link once its pasted. If I typed the first part of the link then paste the rest, it doesn't recognise it as a link and everything works fine!