Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Illegal redirect_uri - how to show my own page

Illegal redirect_uri - how to show my own page

Hello there again 🙂 

 

I am making my web app where user inserts his personal secret data (User ID, Client ID, Client secret etc), after that he confirms loggin in via Spotify web. 
I want to solve some errors and I cant manage one thing. When user insert wrong data in browser will open window with message "Illegal redirect_uri" and others. And I want to show my own html template (working in Python with Flask). Any ideas please? 

I checked status code, but it returns 200. I tried to get html code via response.text, but I got html from Spotify Login Page instead of basic html with Illegal redirect_uri message. 

Thanks in advance for any tips.

Reply
2 Replies

Have you added it to the dashboard of your app and clicked save? Maybe you should add a :port number and http:// in front of it.

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

@Ximzend hello 👋 yes, my redirect_uri looks like this "http://127.0.0.1:5555/callback". When I enter my correct credentials/ dashboard data it works perfectly, but I want to manage (besides other errors) when other user enters any data wrong (so its not only about illegal redirect uri, abut also for example "INVALID_CLIENT: Invalid client ")

Suggested posts

Staff
Let's introduce ourselves!

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…

Staff
ModeratorStaff / Moderator/ 3 years ago  in Social & Random