mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 09:25:49 +03:00
[GH-ISSUE #810] INVALID_CLIENT: Invalid redirect URI when starting with client_id provided #480
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#480
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 @KUHLwasStolen on GitHub (Aug 25, 2025).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/810
Describe the bug
When starting the application with a
client_idprovided I received the error above in my browser.Previously I didn't receive this, the only thing that changed was that I updated
spotify_player.To Reproduce
Set a
client_idin the config file and start the application.Log and backtrace
Unrelated, I think
Additional context
To fix this I added
http://127.0.0.1:8989/loginto the redirect URIs in my Spotify-for-developers app dashboard.Maybe more recently created apps already have this URI by default, I don't know, but maybe we could add a little remark in the documentation on what to do if one receives this error.
@sewnie commented on GitHub (Aug 25, 2025):
I also had to add this in my redirect URI list and it works fine. The previous redirect URI was
localhost:8080, why was it changed?@aome510 commented on GitHub (Aug 25, 2025):
The redirect URI is always
http://127.0.0.1:8989/loginseegithub.com/aome510/spotify-player@bd38dd05a3/examples/app.toml (L2)The only thing changed is that now you need to authenticate
spotify_playerwith your registered Spotify app for Spotify connect. Before,librespotwas able to get a token corresponding to the registered app without going through the authentication.Can you try to change
login_redirect_uriinapp.tomlto a different value to see if it works?Note that this is redirect URI is also used to authenticate the
spotify_playerwith the official Spotify app when you first run it. I think Spotify app prob supports a wide range of redirect URIs.Anyway, thanks for raising. Will need to update Spotify Connect doc to mention that user will need to set Redirect URIs accordingly based on the
login_redirect_uriconfig option@ecabigting commented on GitHub (Aug 25, 2025):
I was having the same error till I add the login redirect URi. Now im getting this:
I installed with this:
cargo install --git https://github.com/aome510/spotify-player.git --features media-control,fzf,notify
Any idea @aome510
@aome510 commented on GitHub (Aug 25, 2025):
@ecabigting unfortunately not. This is the first time I see the above error
@ecabigting commented on GitHub (Aug 25, 2025):
Oh. I tried with different features combination btw:
No luck. :(
This is on arch btw.
Weird enough. Since cannot for the life of me configure
rustin my windows 11 machine. I compiled it with my wsl2 arch linux machine withcargo install --git https://github.com/aome510/spotify-player.git --features imagedidnt get any error. I had to add windows-gnu for rust. But its working ok on windows 11.@aome510 commented on GitHub (Aug 25, 2025):
I doubt it's a feature issue but likely something with your local setup. Hard to tell without further information. Can you open a separate issue instead and provide full log/backtrace? This doesn't seem related to the original issue reported here
@SireBeef commented on GitHub (Aug 25, 2025):
Not sure if this is helpful, but I ran into this issue just now and wanted to add my experience as an extra datapoint.
What I noticed was that my previous redirect URIs that I had set up in my spotify-for-developers app dashboard were as follows:
http://localhost:8989/login
http://localhost:8989/callback
Then I came across this github issue and added http://127.0.0.1:8989/login and everything worked fine.
Our README links to https://developer.spotify.com/documentation/web-api/concepts/apps for info on spotify-connect and the instructions today are different than what was there in the past. I looked up the page and sure enough back in the day they referenced "localhost" as the example and today use "127.0.0.1" for redirect URIs instead. So at some point in the past "localhost" worked and now no longer does.
@KUHLwasStolen commented on GitHub (Aug 25, 2025):
Using localhost in the URIs is deprecated for new apps and will be soon for existing ones: https://developer.spotify.com/documentation/web-api/concepts/redirect_uri