When I deploy app on Surge and search for any song, Its show the error of Invalid Client URI. I changed the redirect uri both in Spotify.js and Spotify Application. I even tried http://localhost:3000/callback/ . I didn’t work either. If anyone can help, I will be thankful.
1 Like
This are my 2 Cents.
I do not have the solution but I see the problem
I’ve changed the Redirect URIs to this http://thick-afternoon.surge.sh
This is the error message I’ve got from Spotify
https://accounts.spotify.com/authorize?client_id=ceaf4c3cd7fc47f187294a6b43a60cab&response_type=token&scope=playlist-modify-public&redirect_uri=https://rolas.beto.surge.sh
You can see that the Redirect URIs is different. It has the old value I’ve used.
I believe Spotify Got stuck with the old value.
1 Like
I fixed it.
I had to run “npm run build” again and it took my new “redirectUri” and worked.
To run surge I had to run npx surge.
I hope this helps!
2 Likes
This is the way, well done. Champion.