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

INVALID_CLIENT: Invalid redirect URI

INVALID_CLIENT: Invalid redirect URI

 

Plan

Free/Premium

Country

USA

 

 

My Question or Issue

I created an app where I fetch data from the Spotify API and use it to make a playlist. The app works perfectly on my computer but on other devices I have a problem. When other people have to log into their accounts, I get an error code

INVALID_CLIENT: Invalid redirect URI

What is the cause of this and how can I fix it? Whats the difference between localhost3000 and localhost5173?

Thanks in advance. Here are some pics

 

 

 

 

Reply
1 Reply

Tail wagging hello to you bz4712!

The "INVALID_CLIENT: Invalid redirect URI" error usually occurs when the redirect URI you've configured in your Spotify API settings doesn't match the one in your app's code. Make sure the redirect URI in your Spotify Developer Dashboard matches the one you're using in your app's authentication flow.

 

Regarding the difference between "localhost:3000" and "localhost:5173," they're both local development server addresses. The numbers after "localhost" represent the port number. It's possible that your app is configured to run on one of these ports, and the specific port you choose can affect how your app handles requests and callbacks. Double-check that the redirect URI you've set in the Spotify API settings matches the one your app is using during authentication.

 

If the issue persists, it could be due to other factors as well, such as incorrect app configuration or authorization settings. Make sure you're following the Spotify API documentation accurately and considering the differences in how your app behaves on different devices.


In regards to the images I am not seeing any at the moment but I am assisting off of mobile so there could be errors on that side. 
Don’t leave me howling at the moon, keep me posted on your situation!

 

-Prague the Dog

Suggested posts

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…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random