Question
I'm getting 'INVALID_CLIENT: Invalid redirect URI' when trying to link my Spotify account. What's wrong?
Answer
Spotify Redirect URI Error
Understanding the Error
The "Invalid redirect URI" error means:
- The callback URL doesn't match Spotify app settings
- URI format is incorrect
- App settings are misconfigured
- Protocol mismatch (http vs https)
Fix Steps
Check Spotify App Settings
- Go to Spotify Developer Dashboard
- Select your app
- Go to "Edit Settings"
- Check "Redirect URIs" section
Add Correct Redirect URI
- Add exactly: http://localhost:3050/auth/spotify/callback
- Or the URL shown in Songify settings
- Ensure no trailing slashes
- Use correct protocol (http)
Verify URI Format
- Must be exact match
- Check for typos
- Ensure proper formatting
- No extra spaces
Update Songify Configuration
- Go to Settings → Spotify
- Verify callback URL matches
- Re-enter Client ID and Secret
- Clear and re-authorize
Common Mistakes
Wrong Protocol
- Use http:// not https://
- Check for protocol mismatch
- Ensure consistency
Wrong Port
- Verify port number (3050)
- Check if Songify uses different port
- Update accordingly
Extra Characters
- No trailing slashes
- No extra spaces
- Exact string match required
Troubleshooting
- Clear browser cache
- Restart Songify
- Check firewall settings
- Verify network connectivity
- Contact support if needed
Prevention
- Document your settings
- Use consistent URIs
- Regular app maintenance
- Test connections regularly
Was this article helpful?
Related Keywords
spotify
redirect uri
oauth
callback
authorization