Rigellute / spotify-tui

Spotify for the terminal written in Rust 🚀
MIT License
17.45k stars 521 forks source link

Little different than the #136 issue. #732

Open PtitFils opened 3 years ago

PtitFils commented 3 years ago

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 ?

PtitFils commented 3 years ago

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...

OrangeFran commented 3 years ago

You can do the following:

OrangeFran commented 3 years ago

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