Announcements

Help Wizard

Step 1

NEXT STEP

no code in response - authorize request

Solved!

no code in response - authorize request

Plan

Free

Country

CZ

Device

Chrome, Firefox, PHP

Operating System

Fedora Linux

 

 

My Question or Issue

Hi,
I'm sending a request to Spotify to authorize. The goal is a response with user e-mail. It goes to Spotify login, I log through Facebook, it shows INVALID_CLIENT: Invalid redirect URI.
And the final URL is:
https://accounts.spotify.com/authorize?scope=user-read-email&response_type=code&redirect_uri=https%3...

I follow this flow:
https://github.com/jwilsson/spotify-web-api-php


I believe the URL must contain the "code" parametr. I also think it must redirect to the given URL. The request ends up with the above mentioned final URL with no any redirect (result code 400 ).

Could you please help me out?

Reply

Accepted Solutions
Marked as solution

It started working "overnight" automatically. This one was a new account and the account confirmation e-mail arrived in the late night.
A solution would be: "Wait for a confirmation e-mail".

View solution in original post

3 Replies

Hey @vaclav20210, thanks for reaching out on the Developer Community!

 

Let's dive right into this. It sounds like the redirect_url parameter you're passing in the request URL (https://accounts.spotify.com/authorize?scope=user-read-email&response_type=code&redirect_uri=https%3...) isn't specified in the App Settings on the Developer Dashboard.

 

Could you double-check that the right redirect URL is specified in your app's settings? (make sure the protocol/ports match too). Let me know how you get on!

 

Have a great day,

Hubo

HuboSpotify 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.

Hi, and thanks for the response. Yes, I double checked. I created an app, filled up website, redirect URL ending with /.

Marked as solution

It started working "overnight" automatically. This one was a new account and the account confirmation e-mail arrived in the late night.
A solution would be: "Wait for a confirmation e-mail".

Suggested posts