[GH-ISSUE #28] Oauth User mode error during configuration #18

Closed
opened 2026-02-27 20:07:42 +03:00 by kerem · 1 comment
Owner

Originally created by @tomballgithub on GitHub (Sep 19, 2025).
Original GitHub issue: https://github.com/misiektoja/spotify_profile_monitor/issues/28

I following the directions and when I try to use this mode via:
python spotify_profile_monitor.py --oauth-user-creds redacted:redacted --token-source oauth_user redacted_uri

I get a message that I need to open this URL and paste the result in:
https://accounts.spotify.com/authorize?client_id=redacted&response_type=code&redirect_uri=http%3A%2F%2F127.0.0.1%3A1234&scope=user-read-private+playlist-read-private+playlist-read-collaborative+user-library-read+user-read-recently-played+user-top-read+user-follow-read&show_dialog=True

But that URL produces:
INVALID_CLIENT: Invalid redirect URI

I've tried it multiple times with two different sets of credentials and tried to open the URL on two different systems logged into my account.

I've never tried this mode, but client mode stopped working today (I submitted issue against spotify_monitor).
The very detailed instructions don't say anything about needing to open a URL.

Originally created by @tomballgithub on GitHub (Sep 19, 2025). Original GitHub issue: https://github.com/misiektoja/spotify_profile_monitor/issues/28 I following the directions and when I try to use this mode via: `python spotify_profile_monitor.py --oauth-user-creds redacted:redacted --token-source oauth_user redacted_uri` I get a message that I need to open this URL and paste the result in: `https://accounts.spotify.com/authorize?client_id=redacted&response_type=code&redirect_uri=http%3A%2F%2F127.0.0.1%3A1234&scope=user-read-private+playlist-read-private+playlist-read-collaborative+user-library-read+user-read-recently-played+user-top-read+user-follow-read&show_dialog=True` But that URL produces: `INVALID_CLIENT: Invalid redirect URI` I've tried it multiple times with two different sets of credentials and tried to open the URL on two different systems logged into my account. I've never tried this mode, but client mode stopped working today (I submitted issue against spotify_monitor). The very detailed instructions don't say anything about needing to open a URL.
kerem closed this issue 2026-02-27 20:07:43 +03:00
Author
Owner

@tomballgithub commented on GitHub (Sep 19, 2025):

Well, the issue was that the redirect url in my app had a trailing slash.
It must exactly match what is in the directions:
http://127.0.0.1:1234

If you cut/paste the text, it works. If you right click and copy the URL, you may end up with a trailing / and that will fail.

<!-- gh-comment-id:3310587754 --> @tomballgithub commented on GitHub (Sep 19, 2025): Well, the issue was that the redirect url in my app had a trailing slash. It must exactly match what is in the directions: `http://127.0.0.1:1234` If you cut/paste the text, it works. If you right click and copy the URL, you may end up with a trailing / and that will fail.
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/spotify_profile_monitor#18
No description provided.