spot4e icon indicating copy to clipboard operation
spot4e copied to clipboard

authorization doesn't seem to work

Open cremacs opened this issue 7 years ago • 7 comments

when I run spot4e-authorize I get sent to a web page that simply says, "Illegal redirect_uri".

cremacs avatar Apr 13 '18 00:04 cremacs

Hi cremacs, thank you for taking the time to point out this issue.

Unfortunately I can't seem to reproduce this error on my machine.

I did some research as to what may be causing it, and I found this, which suggests that the redirect uri must be white-listed, which has already been taken care of.

The redirect uri is https://spotify.com, and this is white-listed. My only thought is that your browser might be redirecting you to spotify with a different TLD (top level domain), for example if you're in a different country.

Can I ask which country you're running the code from?

chiply avatar Apr 17 '18 17:04 chiply

Thanks for your response. I'm in the United States.

cremacs avatar Apr 30 '18 01:04 cremacs

Hi chiply, I'm getting the same issue (also US based). I've verified that "https://spotify.com" is being hexified properly in the authorization uri, but I'm not sure what else to check.

jmoss20 avatar Oct 25 '18 02:10 jmoss20

Hi all - reopening this issue as it seems I closed prematurely! A fix is in the works, hold tight :-). Out of curiosity, John, are you using emacs in the terminal of GUI?

chiply avatar Oct 27 '18 15:10 chiply

I'm on GUI, but just checked the terminal and I'm getting the same error. Thanks for taking a look!

jmoss20 avatar Oct 27 '18 17:10 jmoss20

Hey, I just merged a pull request that changed the way the auth url is encoded (this was from @christoofar, not sure why he isn't showing up as a contributor, or why this isn't tagging him properly). It should work properly now, can you both check?

See this commit https://github.com/chiply/spot4e/commit/1f9407b5ab1cb4857c092d279c6c36b9bdf64f2b

chiply avatar Nov 08 '18 19:11 chiply

Still getting an illegal redirect_URI on my end. Hard to tell just from the URI what the issue is -- I'll hunt around in Spotify docs later this week and see if I can find a problem. Thanks for taking a look!

jmoss20 avatar Nov 08 '18 22:11 jmoss20