[GH-ISSUE #886] Fixed: failed Spotify’s API setup - Invalid client: Invalid URI #376

Open
opened 2026-02-28 14:48:47 +03:00 by kerem · 4 comments
Owner

Originally created by @aleksanderwalczuk on GitHub (Sep 15, 2021).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/886

Hi there 👋

I got stucked during configuration process. I was basically copy-pasting the documentation, but it took me about 2 hours to pass the whitelisting tui's url.
What I've noted is:

  • when I clicked the generated url to open it in the browser it was it was incomplete in the browsers tab, like cut in half. This was seen on Visual Studio Code integrated terminal on Mac OS 10.15, fixed when I've switched to different terminal emulator (iTerm2) it worked fine
  • other API data (client_id, client_secret) was fine
  • generated callback url contains the redirect_uri parameter pointing to http://localhost:8888

Solved by whitelisting both http://localhost:8888 and http://localhost:8888/, worked as a charm.

Hope it saves some of your time, gl

tui installed via brew on OSX 10.15.7

Originally created by @aleksanderwalczuk on GitHub (Sep 15, 2021). Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/886 Hi there 👋 I got stucked during configuration process. I was basically copy-pasting the documentation, but it took me about 2 hours to pass the whitelisting tui's url. What I've noted is: - when I clicked the generated url to open it in the browser it was it was incomplete in the browsers tab, like cut in half. This was seen on Visual Studio Code integrated terminal on Mac OS 10.15, fixed when I've switched to different terminal emulator (iTerm2) it worked fine - other API data (client_id, client_secret) was fine - generated callback url contains the `redirect_uri` parameter pointing to `http://localhost:8888` Solved by whitelisting both `http://localhost:8888` and `http://localhost:8888/`, worked as a charm. Hope it saves some of your time, gl tui installed via brew on OSX 10.15.7
Author
Owner

@benfrain commented on GitHub (Sep 24, 2021):

Same issue here. When you say 'whitelist' – are you just adding them to /etc/hosts/?

<!-- gh-comment-id:926475326 --> @benfrain commented on GitHub (Sep 24, 2021): Same issue here. When you say 'whitelist' – are you just adding them to `/etc/hosts/`?
Author
Owner

@aleksanderwalczuk commented on GitHub (Sep 24, 2021):

@benfrain you have to whitelist it on the Spotify WebAPI side:

  1. log into https://developer.spotify.com/dashboard/applications
  2. Create an App or pick existing
  3. Click Edit Settings button and find Redirect URIs
  4. Add whitelisted URIs below
<!-- gh-comment-id:926572256 --> @aleksanderwalczuk commented on GitHub (Sep 24, 2021): @benfrain you have to whitelist it on the Spotify WebAPI side: 1. log into https://developer.spotify.com/dashboard/applications 2. Create an App or pick existing 3. Click `Edit Settings` button and find **Redirect URIs** 4. Add whitelisted URIs below
Author
Owner

@benfrain commented on GitHub (Sep 24, 2021):

Thanks @aleksanderwalczuk up and running now 👍

<!-- gh-comment-id:926623012 --> @benfrain commented on GitHub (Sep 24, 2021): Thanks @aleksanderwalczuk up and running now 👍
Author
Owner

@hejtlo0p commented on GitHub (Aug 8, 2022):

I had my http://"IP address":8888 instead of http://localhost:8888 🤦

Thanks! That did the trick! xD <3

<!-- gh-comment-id:1207700750 --> @hejtlo0p commented on GitHub (Aug 8, 2022): I had my http://"IP address":8888 instead of http://localhost:8888 🤦 Thanks! That did the trick! xD <3
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-tui#376
No description provided.