[GH-ISSUE #394] util.prompt gives bad request #230

Closed
opened 2026-02-27 23:21:30 +03:00 by kerem · 1 comment
Owner

Originally created by @NathanTech7713 on GitHub (Aug 26, 2019).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/394

hi there,
So I only recently grabbed this as part of a project I'm working on that wants to include spotify support.
I was playing with it in the terminal, and so did:
appid='my app id' # obviously I pasted my app id
secret='my secret'
scopes='some scopes that I got from the website'
url='my url'
I carried out the documented method, that is to call util.prompt(username, scope, id, secret, url)
And it successfully ran in my browser.
I even got it up to where it redirects to:
https://mydomain.mytldr/spotify.php?code=a_long_as_hell_code
Pasting the url into the input of th eterminal however, said bad request.
Is there something I'm missing? Am I only supposed to paste in the code? the code= bit? or

Originally created by @NathanTech7713 on GitHub (Aug 26, 2019). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/394 hi there, So I only recently grabbed this as part of a project I'm working on that wants to include spotify support. I was playing with it in the terminal, and so did: appid='my app id' # obviously I pasted my app id secret='my secret' scopes='some scopes that I got from the website' url='my url' I carried out the documented method, that is to call util.prompt(username, scope, id, secret, url) And it successfully ran in my browser. I even got it up to where it redirects to: https://mydomain.mytldr/spotify.php?code=a_long_as_hell_code Pasting the url into the input of th eterminal however, said bad request. Is there something I'm missing? Am I only supposed to paste in the code? the code= bit? or
kerem closed this issue 2026-02-27 23:21:30 +03:00
Author
Owner

@NathanTech7713 commented on GitHub (Aug 30, 2019):

It is very important to enter your app secret correctly. If you don't, my issue will occur. Sorry for the bother. Mortified.

<!-- gh-comment-id:526707701 --> @NathanTech7713 commented on GitHub (Aug 30, 2019): It is very important to enter your app secret correctly. If you don't, my issue will occur. Sorry for the bother. Mortified.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#230
No description provided.