[GH-ISSUE #344] util.prompt_for_user_token() doesn't pass redirect URI correctly #201

Closed
opened 2026-02-27 23:21:21 +03:00 by kerem · 3 comments
Owner

Originally created by @codeoxvf on GitHub (Jan 13, 2019).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/344

Ran the example code to get the user's saved tracks. The environment variables for client id, secret and redirect URI were set, but the Spotify authorisation website had None as the redirect URI. The function did not get the contents of SPOTIPY_REDIRECT_URI or did not set it in the query parameters properly?

Originally created by @codeoxvf on GitHub (Jan 13, 2019). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/344 Ran the example code to get the user's saved tracks. The environment variables for client id, secret and redirect URI were set, but the Spotify authorisation website had None as the redirect URI. The function did not get the contents of SPOTIPY_REDIRECT_URI or did not set it in the query parameters properly?
kerem closed this issue 2026-02-27 23:21:21 +03:00
Author
Owner

@codeoxvf commented on GitHub (Jan 13, 2019):

I have tried the same code, but passing the client ID, secret and redirect URI directly to the function arguments. It works when passed like that. This points to a problem in the parsing of the environment variables.

<!-- gh-comment-id:453793342 --> @codeoxvf commented on GitHub (Jan 13, 2019): I have tried the same code, but passing the client ID, secret and redirect URI directly to the function arguments. It works when passed like that. This points to a problem in the parsing of the environment variables.
Author
Owner

@DackJempsey commented on GitHub (Feb 14, 2019):

When exporting keys in my environment I keep getting a 550, credentials not set. Have you tried setting in environment lately or just hardcoding?

<!-- gh-comment-id:463469616 --> @DackJempsey commented on GitHub (Feb 14, 2019): When exporting keys in my environment I keep getting a 550, credentials not set. Have you tried setting in environment lately or just hardcoding?
Author
Owner

@stephanebruckert commented on GitHub (Jan 13, 2020):

There was a typo in the doc. Please see https://github.com/plamere/spotipy/issues/402#issuecomment-573890067 for a fix

<!-- gh-comment-id:573891350 --> @stephanebruckert commented on GitHub (Jan 13, 2020): There was a typo in the doc. Please see https://github.com/plamere/spotipy/issues/402#issuecomment-573890067 for a fix
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#201
No description provided.