-
-
Notifications
You must be signed in to change notification settings - Fork 255
Fixed Spotify Redirect URL for Local Development #3262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
For posterity, we are waiting for Spotify to fix their buggy URL validation. |
Yeah @MonkeyDo we have to wait I think I got this error while setting up on local , getting nostalgia how I started contributing to metabrainz 🥹! Thx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spotify has fixed their URI validation on their end, so this is now ready after a small change.
Problem
While setting up the ListenBrainz project and integrating Spotify, I encountered an issue with the redirect url

http://localhost:8100/settings/music-services/spotify/callback/
. Spotify detects this url as not secure in the Developer Dashboard, because they have updated their way of accepting the callback url as I have attached the screenshot .Refer the screenshot below for the updated guidlines of spotify :

I also noticed this url is hardcoded in config.py.sample , so I believe both the docs and this config need an update which will help newcomers for local development
Solution
successfully updated server development docs by updating the callback/redirect url of spotify to :

https://127.0.0.1:8100/settings/music-services/spotify/callback/
as suggested by @amCap1712 to use127.0.0.1
instead oflocalhost
and also updated the config.py.sample :
and please ignore this commit :
c632f07903b28312f2c407d0d59b5bad517f1d3e