[GH-ISSUE #476] INVALID_CLIENT: Invalid redirect URI #198

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

Originally created by @securitybreach on GitHub (May 24, 2020).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/476

On Archlinux using chrome or firefox, I get the following error:

INVALID_CLIENT: Invalid redirect URI

2020-05-24-111240_2535x379_scrot

Originally created by @securitybreach on GitHub (May 24, 2020). Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/476 On Archlinux using chrome or firefox, I get the following error: INVALID_CLIENT: Invalid redirect URI ![2020-05-24-111240_2535x379_scrot](https://user-images.githubusercontent.com/263925/82758963-4fc50f00-9dd9-11ea-9848-1ba8439e005a.png)
kerem closed this issue 2026-02-28 14:47:42 +03:00
Author
Owner

@sarahrobichaud commented on GitHub (May 25, 2020):

Did you add the callback URI in your app's settings on the developer.spotify.com app dashboard?

<!-- gh-comment-id:633697444 --> @sarahrobichaud commented on GitHub (May 25, 2020): Did you add the callback URI in your app's settings on the developer.spotify.com app dashboard?
Author
Owner

@securitybreach commented on GitHub (May 25, 2020):

I did not, I will do that now. I just installed the application and the redirect when I opened it gave that error message.

<!-- gh-comment-id:633712517 --> @securitybreach commented on GitHub (May 25, 2020): I did not, I will do that now. I just installed the application and the redirect when I opened it gave that error message.
Author
Owner

@sarahrobichaud commented on GitHub (May 26, 2020):

You might have figured it out by now but here are the instructions from the README:

Connecting to Spotify’s API

spotify-tui needs to connect to Spotify’s API in order to find music by
name, play tracks etc.

Instructions on how to set this up will be shown when you first run the app.

But here they are again:

  1. Go to the Spotify dashboard
  2. Click Create a Client ID and create an app
  3. Now click Edit Settings
  4. Add http://localhost:8888/callback to the Redirect URIs
  5. You are now ready to authenticate with Spotify!
  6. Go back to the terminal
  7. Run spt
  8. Enter your Client ID
  9. Enter your Client Secret
  10. You will be redirected to an official Spotify webpage to ask you for permissions.
  11. After accepting the permissions, you'll be redirected to localhost. If all goes well, the redirect URL will be parsed automatically and now you're done. If the local webserver fails for some reason you'll be redirected to a blank webpage that might say something like "Connection Refused" since no server is running. Regardless, copy the URL and paste into the prompt in the terminal.

And now you are ready to use the spotify-tui 🎉

You can edit the config at anytime at ${HOME}/.config/spotify-tui/client.yml.

<!-- gh-comment-id:634118983 --> @sarahrobichaud commented on GitHub (May 26, 2020): You might have figured it out by now but here are the instructions from the README: ## Connecting to Spotify’s API `spotify-tui` needs to connect to Spotify’s API in order to find music by name, play tracks etc. Instructions on how to set this up will be shown when you first run the app. But here they are again: 1. Go to the [Spotify dashboard](https://developer.spotify.com/dashboard/applications) 1. Click `Create a Client ID` and create an app 1. Now click `Edit Settings` 1. Add `http://localhost:8888/callback` to the Redirect URIs 1. You are now ready to authenticate with Spotify! 1. Go back to the terminal 1. Run `spt` 1. Enter your `Client ID` 1. Enter your `Client Secret` 1. You will be redirected to an official Spotify webpage to ask you for permissions. 1. After accepting the permissions, you'll be redirected to localhost. If all goes well, the redirect URL will be parsed automatically and now you're done. If the local webserver fails for some reason you'll be redirected to a blank webpage that might say something like "Connection Refused" since no server is running. Regardless, copy the URL and paste into the prompt in the terminal. And now you are ready to use the `spotify-tui` 🎉 You can edit the config at anytime at `${HOME}/.config/spotify-tui/client.yml`.
Author
Owner

@securitybreach commented on GitHub (May 26, 2020):

Thanks

<!-- gh-comment-id:634120926 --> @securitybreach commented on GitHub (May 26, 2020): Thanks
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#198
No description provided.