Type in your question below and we'll check to see what answers we can find...
Loading article...
Submitting...
If you couldn't find any answers in the previous step then we need to post your question in the community and wait for someone to respond. You'll be notified when that happens.
Simply add some detail to your question and refine the title if needed, choose the relevant category, then post.
Before we can post your question we need you to quickly make an account (or sign in if you already have one).
Don't worry - it's quick and painless! Just click below, and once you're logged in we'll bring you right back here and post your question. We'll remember what you've already typed in so you won't have to do it again.
I previously had an issue around redirect_uri that was quickly clarified and solved (thank you! 😁). My app runs perfectly locally, but now that I've deployed it on Heroku, I'm running into a related and confusing issue. To confirm, the 'redirect_uri' setting matches exactly in both the code and in the app settings in Spotify. I've experimented with different valid URIs and had the same result.
Authentication is working locally, however, when deployed to a production server, the authentication breaks at the point after logging in to Spotify and the user is authorized. The user should then be returned to my app to enter a playlist URL, but instead is being sent to redirect_uri/?+code=+state=, which results in a browser error:"Unable to connect / Firefox can’t establish a connection to the server at 127.0.0.1:5000."
Instead of getting an access_token and refresh_token in the redirect_uri, I instead get ?code. Have you seen this before? e.g. http://redirect_uri.com/?code=xxxx&state=xxxx
For example:
http://127.0.0.1:5000/callback?code=AQDuFlTFC60VS0PO3ol90qMFJb0RgcX9y9Bjd7Zs7oiZwnnfkcTMd0oGxHEMFrQOVVaLPb8xiV23ca5IaKPu5aS-1hCuPfkQC-EII3J9sWGLaFfay1Jv8UzeSJEcln0F6wyt_h-azqMvLRUJ_l3FvFKWIhPtJjvdYLX-HueqIhRHAo5qur2sNxA2ObYilskrG2jpzpvi14Aw&state=OJ3M2R57892U2H2P
Solved! Go to Solution.
Glad you got things sorted out 😀
Hey there you, Yeah, you! 😁 Welcome - we're glad you joined the Spotify Community! While you here, let's have a fun game and get…