[GH-ISSUE #732] Little different than the #136 issue. #293

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

Originally created by @PtitFils on GitHub (Feb 4, 2021).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/732

Dear,

when I am running set at the first time to install, I got an error like :

user-open error: exec: "dbus-launch": executable file not found in $PATH
Error Custom { kind: Other, error: "return code 1" };Please navigate here ["https://accounts.spotify.com/authorize?state=SQui9OJ8LkpjddP3&scope=playlist-read-collaborative%20playlist-read-private%20playlist-modify-private%20playlist-modify-public%20user-follow-read%20user-follow-modify%20user-library-modify%20user-library-read%20user-modify-playback-state%20user-read-currently-playing%20user-read-playback-state%20user-read-playback-position%20user-read-private%20user-read-recently-played&response_type=code&redirect_uri=http:%2F%2Flocalhost:8888%2Fcallback&client_id=b6f4a2b5e80044989afd05fe43eeae5b&"]

And I don't understand
I type the ClientID
I type the secretID
Continue by enter for the 8888 port.

And after I got this error.
On the issue #136, I can understand that (tell me if it's right) :

the server open the browser to navigate to this url (displayed in the error)
in the browser, I need to authenticate and accept the permissions, and he send a redirection with a re-write URL on http://localhost:8888/callback ???
the browser try to navigate to this URL http://localhost:8888/callback?data=... ??
By navigating on localhost, the spt program receive the get data on the 8888 port (he listen the 8888 port.

I think he never listen on the 8888 port in my case ...
I type a netstat command, and I see no pid for the 8888 port.

Like the #136 issue, I am trying to install spotify-tui on a non-gui Linux system.
And I just have Lynx or other eLinks browser that no support JS.
I'm connected to the Linux Machine by ssh too.
But if I understand,I can copy the link, paste in a web browser on another computer with a browser and change the http://localhost:8888/... to http://:8888/... ??? No ??

or Maybe copy the response link to the prompt ??

But, I think, the process don't listen on 8888 port ...

Could'you help me please ?

Originally created by @PtitFils on GitHub (Feb 4, 2021). Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/732 Dear, when I am running set at the first time to install, I got an error like : ``` user-open error: exec: "dbus-launch": executable file not found in $PATH Error Custom { kind: Other, error: "return code 1" };Please navigate here ["https://accounts.spotify.com/authorize?state=SQui9OJ8LkpjddP3&scope=playlist-read-collaborative%20playlist-read-private%20playlist-modify-private%20playlist-modify-public%20user-follow-read%20user-follow-modify%20user-library-modify%20user-library-read%20user-modify-playback-state%20user-read-currently-playing%20user-read-playback-state%20user-read-playback-position%20user-read-private%20user-read-recently-played&response_type=code&redirect_uri=http:%2F%2Flocalhost:8888%2Fcallback&client_id=b6f4a2b5e80044989afd05fe43eeae5b&"] ``` And I don't understand I type the ClientID I type the secretID Continue by enter for the 8888 port. And after I got this error. On the issue #136, I can understand that (tell me if it's right) : > the server open the browser to navigate to this url (displayed in the error) > in the browser, I need to authenticate and accept the permissions, and he send a redirection with a re-write URL on http://localhost:8888/callback ??? > the browser try to navigate to this URL http://localhost:8888/callback?data=... ?? > By navigating on localhost, the spt program receive the get data on the 8888 port (he listen the 8888 port. I think he never listen on the 8888 port in my case ... I type a netstat command, and I see no pid for the 8888 port. Like the #136 issue, I am trying to install spotify-tui on a non-gui Linux system. And I just have Lynx or other eLinks browser that no support JS. I'm connected to the Linux Machine by ssh too. But if I understand,I can copy the link, paste in a web browser on another computer with a browser and change the http://localhost:8888/... to http://<ipaddressofthelinuxsystem>:8888/... ??? No ?? or Maybe copy the response link to the prompt ?? But, I think, the process don't listen on 8888 port ... Could'you help me please ?
Author
Owner

@PtitFils commented on GitHub (Feb 4, 2021):

I am already running an apache server on this machine on port 80.
But I also tried to stop the apache server before running the spt command...

<!-- gh-comment-id:773410235 --> @PtitFils commented on GitHub (Feb 4, 2021): I am already running an apache server on this machine on port 80. But I also tried to stop the apache server before running the spt command...
Author
Owner

@OrangeFran commented on GitHub (Feb 6, 2021):

You can do the following:

  • Create an ssh-tunnel to redirect everything on localhost:8888 on your local machine to localhost:8888 on your remote server: ssh -L 8888:localhost:8888 username@server-ip on your local machine.
  • Then start spt on your server: spt. Enter your id, secret and the port 8888 and wait for the error message to appear. The error just says that you are on a headless machine and thus it could not open a suitable browser.
  • Now copy the https://accounts.spotify.com/... url and put it into your local gui browser. And tada, you should be authorized!
<!-- gh-comment-id:774529180 --> @OrangeFran commented on GitHub (Feb 6, 2021): You can do the following: * Create an ssh-tunnel to redirect everything on localhost:8888 on your local machine to localhost:8888 on your remote server: `ssh -L 8888:localhost:8888 username@server-ip` on your local machine. * Then start `spt` on your server: `spt`. Enter your id, secret and the port 8888 and wait for the error message to appear. The error just says that you are on a headless machine and thus it could not open a suitable browser. * Now copy the `https://accounts.spotify.com/...` url and put it into your local gui browser. And tada, you should be authorized!
Author
Owner

@OrangeFran commented on GitHub (Feb 6, 2021):

I just read that running curl "https://accounts.spotify.com/... on your server should work as well. You can try that too.

<!-- gh-comment-id:774529469 --> @OrangeFran commented on GitHub (Feb 6, 2021): I just read that running `curl "https://accounts.spotify.com/...` on your server should work as well. You can try that too.
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#293
No description provided.