spotify-api-starter icon indicating copy to clipboard operation
spotify-api-starter copied to clipboard

Issue with redirect URL

Open sky-fc opened this issue 6 years ago • 2 comments

Hello! I really don't know if anyone will end up seeing this, but here goes 👍 I have properly set up credentials.sh, and I've used http://localhost/ in credentials.sh as well as the redirect URL in my Spotify Developer project ...

when I execute 'make run', I then hit 2, enter my spotify username, and a link is opened in my browser. The link I'm given is : https://accounts.spotify.com/authorize?client_id=your-spotify-client-id&response_type=code&redirect_uri=http%3A%2F%2Flocalhost%2F&scope=playlist-read-private+user-library-read on that page it doesn't say a 404 error, but instead an INVALID CLIENT error.

When I paste this link back into terminal, it tells me : **Uh oh! It doesn't look like that URI was registered as a redirect URI for your application. Please check to make sure that "http://localhost/" is listed as a Redirect URI and then Try again.'

make: *** [run] Error 1**

It absolutely seems like I'm just making some small error but I can't figure it out. I've re-done this whole process from scratch two times and can't get past this issue ... any thoughts / advice?

sky-fc avatar Aug 30 '19 23:08 sky-fc

You should add "http://localhost/" into the redirect URIs white list of your account. You could edit it by clicking the "edit settings" on your Spotify dashboard on the top right. Don't forget to save the change!

leochang0131 avatar May 12 '20 12:05 leochang0131

Guys, when I execute 'make run', I then hit 2, enter my spotify username, and a link is not getting opened in my browser. https://accounts.spotify.com/authorize?client_id=6a62455e7e664a6f920c3e4b0b9e8ab8%0D&response_type=code&redirect_uri=http%3A%2F%2Flocalhost%2F%0D&scope=user-library-read+playlist-read-private

the URL having some line breaks : " %0D " , How do i resolve this issue?

PN: the link is working only If i manually copy the link from terminal to browser & remove %0D from the link broswer. I am using Ubunutu .browser : Chrome & Firefox.

thepubsup avatar Jun 07 '21 17:06 thepubsup