[GH-ISSUE #7] Connection Refused - Linux #6

Closed
opened 2026-02-28 14:46:18 +03:00 by kerem · 7 comments
Owner

Originally created by @delirehberi on GitHub (Oct 7, 2019).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/7

You said it only works for mac, but I want to try in Linux, it seems working but returns an error at the below after facebook log in.

Could not connect: Connection refused.

Originally created by @delirehberi on GitHub (Oct 7, 2019). Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/7 You said it only works for mac, but I want to try in Linux, it seems working but returns an error at the below after facebook log in. `Could not connect: Connection refused.`
kerem closed this issue 2026-02-28 14:46:18 +03:00
Author
Owner

@Rigellute commented on GitHub (Oct 7, 2019):

Hmm... how did you install it on Linux? via cargo install spotify-tui?

This app does work on Linux (I've tested myself), however I've only published a binary for macOS so the homebrew installation will only work on macOS.

At which point do you get that error?

<!-- gh-comment-id:538977035 --> @Rigellute commented on GitHub (Oct 7, 2019): Hmm... how did you install it on Linux? via `cargo install spotify-tui`? This app does work on Linux (I've tested myself), however I've only published a binary for macOS so the homebrew installation will only work on macOS. At which point do you get that error?
Author
Owner

@QuinnFreedman commented on GitHub (Oct 7, 2019):

I'm getting the same problem. I installed from cargo on Ubuntu 19.04

It seems to be at the very last step. I logged in to my Spotify dev console and got my id and secret and added the redirect URL. Then I ran spt. I entered my info and it opened a login page in my browser. I clicked "Log in with Facebook" and it redirected me to http://localhost:8888/callback?code=... but I can't connect to localhost. Chrome says:

This site can’t be reached

localhost refused to connect.

Try

  • Checking the connection
  • Checking the proxy and the firewall

ERR_CONNECTION_REFUSED

I know that the connection/proxy/firewall isn't the issue because I connect to localhost:8888 all the time (and yes I checked nothing else was trying to serve on that port at the time)

<!-- gh-comment-id:539125692 --> @QuinnFreedman commented on GitHub (Oct 7, 2019): I'm getting the same problem. I installed from cargo on Ubuntu 19.04 It seems to be at the very last step. I logged in to my Spotify dev console and got my id and secret and added the redirect URL. Then I ran `spt`. I entered my info and it opened a login page in my browser. I clicked "Log in with Facebook" and it redirected me to `http://localhost:8888/callback?code=...` but I can't connect to localhost. Chrome says: > ### This site can’t be reached > **localhost** refused to connect. > > Try > * Checking the connection > * Checking the proxy and the firewall > > `ERR_CONNECTION_REFUSED` I know that the connection/proxy/firewall isn't the issue because I connect to localhost:8888 all the time (and yes I checked nothing else was trying to serve on that port at the time)
Author
Owner

@QuinnFreedman commented on GitHub (Oct 7, 2019):

I tried manually changing it to https as well and that didn't work either

<!-- gh-comment-id:539127823 --> @QuinnFreedman commented on GitHub (Oct 7, 2019): I tried manually changing it to `https` as well and that didn't work either
Author
Owner

@delirehberi commented on GitHub (Oct 7, 2019):

I installed it with cargo. I runned the app in the same way as @QuinnFreedman. minibuffer.lisp opened Spotify login page, I clicked the facebook login. Returned "connection refused" after success login with facebook. OS: ubuntu 18.04.2 LTS

<!-- gh-comment-id:539127922 --> @delirehberi commented on GitHub (Oct 7, 2019): I installed it with cargo. I runned the app in the same way as @QuinnFreedman. minibuffer.lisp opened Spotify login page, I clicked the facebook login. Returned "connection refused" after success login with facebook. OS: ubuntu 18.04.2 LTS
Author
Owner

@alxdb commented on GitHub (Oct 7, 2019):

I just had this same issue, although it isn't really an issue. You will be redirected to a page that doesn't exist (hence connection refused). Just copy paste the url you are redirected to into stdin (as spt instructs you do to after you close the page) and things should work. Perhaps the instructions should be made a little more clear though.

<!-- gh-comment-id:539131091 --> @alxdb commented on GitHub (Oct 7, 2019): I just had this same issue, although it isn't really an issue. You will be redirected to a page that doesn't exist (hence connection refused). Just copy paste the url you are redirected to into stdin (as spt instructs you do to after you close the page) and things should work. Perhaps the instructions should be made a little more clear though.
Author
Owner

@Rigellute commented on GitHub (Oct 7, 2019):

Exactly @alxdb.
I will explore creating a localhost server for a small webpage to land you on after the redirect.
It definitely feels wrong landing on a page that says it's not loading.

<!-- gh-comment-id:539167120 --> @Rigellute commented on GitHub (Oct 7, 2019): Exactly @alxdb. I will explore creating a localhost server for a small webpage to land you on after the redirect. It definitely feels wrong landing on a page that says it's not loading.
Author
Owner

@delirehberi commented on GitHub (Oct 8, 2019):

thanks @alxdb it works c/p the redirected url. how I missed that :)

<!-- gh-comment-id:539417471 --> @delirehberi commented on GitHub (Oct 8, 2019): thanks @alxdb it works c/p the redirected url. how I missed that :)
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#6
No description provided.