[GH-ISSUE #180] Invalid redirect URL #118

Closed
opened 2026-02-27 19:26:10 +03:00 by kerem · 2 comments
Owner

Originally created by @wbertolo on GitHub (Dec 28, 2019).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/180

Hi Jonathan,

your API is great and easy to use. I am having an issue though. I tested everything locally and it all works. Now that I published it live on an https site, I get the message 'Uncaught SpotifyWebAPI\SpotifyWebAPIAuthException: Invalid redirect URI in /home/follo940/public_html/vendor/jwilsson/spotify-web-api-php/src/Request.php:49', even though I white-listed the new callback URLs on the Spotify App control panel. Any clue about what could be happening? Thanks.

Originally created by @wbertolo on GitHub (Dec 28, 2019). Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/180 Hi Jonathan, your API is great and easy to use. I am having an issue though. I tested everything locally and it all works. Now that I published it live on an https site, I get the message 'Uncaught SpotifyWebAPI\SpotifyWebAPIAuthException: Invalid redirect URI in /home/follo940/public_html/vendor/jwilsson/spotify-web-api-php/src/Request.php:49', even though I white-listed the new callback URLs on the Spotify App control panel. Any clue about what could be happening? Thanks.
kerem closed this issue 2026-02-27 19:26:10 +03:00
Author
Owner

@wbertolo commented on GitHub (Dec 28, 2019):

I added the pages in the same format as I did with the local ones. I also added the one which is failing with and without trailing slashes. I also tried adding and removing trailing slashes from the code.

The similar flow I have inside WP works fine. Only the public-facing one fails like this (it works well on my local though).

<!-- gh-comment-id:569458786 --> @wbertolo commented on GitHub (Dec 28, 2019): I added the pages in the same format as I did with the local ones. I also added the one which is failing with and without trailing slashes. I also tried adding and removing trailing slashes from the code. The similar flow I have inside WP works fine. Only the public-facing one fails like this (it works well on my local though).
Author
Owner

@wbertolo commented on GitHub (Dec 28, 2019):

never mind. It was my own fault. I just realized what was wrong.

<!-- gh-comment-id:569460184 --> @wbertolo commented on GitHub (Dec 28, 2019): never mind. It was my own fault. I just realized what was wrong.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-web-api-php#118
No description provided.