I get INVALID_CLIENT: Invalid redirect URI when opening the URI given from AuthorizationCodeUriExample #327
-
I have changed the clientId and CLientSecret variables with the ones I created in SpotifyforDevelopers. The problem is that when I run the file and try the URIs, none of them work for me, they give me the following error: INVALID_CLIENT: Invalid redirect URI and I don't know what I'm doing wrong because I have put the URI that it gives me in Edit Setting->RedirectsURIs and it still doesn't work, the code I have in the file is the following: package com.example.spotifybackupprojectuf2; import se.michaelthelin.spotify.SpotifyApi; import java.net.URI; public class AuthorizationCodeUri{
// .state("x4xkmn9pu3j6ukrs8n")
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @IGprojects, make sure to format all lines of code properly. So you're sure you've entered You get a well formed response from the api indicating a mistake about the redirect uri and in all cases I witnessed the api was right. Doublecheck please, or contact people in closer relation to Spotify as on here you'll only find volunteers. Try StackOverflow as described in the CONTRIBUTING.md. |
Beta Was this translation helpful? Give feedback.
Hey @IGprojects, make sure to format all lines of code properly. So you're sure you've entered
https://example.com/spotify-redirect
as redirect uri under https://developer.spotify.com/dashboard/? Did you save your changes there?You get a well formed response from the api indicating a mistake about the redirect uri and in all cases I witnessed the api was right. Doublecheck please, or contact people in closer relation to Spotify as on here you'll only find volunteers. Try StackOverflow as described in the CONTRIBUTING.md.