0

I am fairly new to web development, and I have been trying to make a web app with Python using the Spotify API.

I've tried to experiment with getting authorization to a user's account and I've tried entering this into my browser (replacing "CLIENTID" with my client id): https://accounts.spotify.com/authorize?client_id=CLIENTID&response_type=code&redirect_uri=https%3A%2F%2Fexample.com%2Fcallback

However, I'm getting the error:

INVALID_CLIENT: Invalid redirect URI. 

I have white listed http://example.com/callback in my account, so that shouldn't be a problem. What am I doing wrong?

Jkillau
  • 1
  • 1
  • Hi welcome to the SO community. If you whitelisted "http://example.com/callback" that does not work, use this instead: http://localhost:8888/callback – Chris Apr 06 '20 at 05:08

1 Answers1

0

Take a look at this post, essentially the redirect URI should be exactly the same as the one that is whitelisted on the spotify dashboard.

portatlas
  • 441
  • 4
  • 8