Jkillau
Jkillau

Reputation: 11

Spotify API: Invalid redirect URI

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?

Upvotes: 1

Views: 2760

Answers (2)

Gabriel da Silva
Gabriel da Silva

Reputation: 1

For who are getting this error, try to use this redirect URI in the Spotify's dashboard:

http://localhost:3000/api/auth/callback/spotify

Upvotes: 0

portatlas
portatlas

Reputation: 687

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.

Upvotes: 0

Related Questions