okonek / tidal-cli-client

You can now use Tidal on linux. With your loved CLI. <3
MIT License
272 stars 29 forks source link

Unhandled promise rejection in Fedora #11

Closed twhiston closed 6 years ago

twhiston commented 6 years ago

On Fedora 27, having made sure I have all the dependencies, I try to search for an artist, but when I do the program crashes with the following error

(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'tw' of undefined
(node:1) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. 
okonek commented 6 years ago

Have got W3M and MPV installed?

twhiston commented 6 years ago

yes

tad124737337 commented 6 years ago
       (node:25335) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'tw' of undefined────────────────────────────────────────────────────────┐
    at new module.exports (/usr/local/lib/node_modules/tidal-cli-client/app/UI/SquareImage.js:9:41)                                                            │
    at new module.exports (/usr/local/lib/node_modules/tidal-cli-client/app/UI/ArtistPanel.js:25:28)
    at ActivityPanel.showPanel (/usr/local/lib/node_modules/tidal-cli-client/app/UI/ActivityPanel.js:34:37)
    at Object.communicationEvents.subscribe [as handler] (/usr/local/lib/node_modules/tidal-cli-client/app/UI/MainScreen.js:102:40)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:118:7)
(node:25335) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)

I'm seeing this issue on Ubuntu.

$ apt list --installed | grep "mpv|w3m" mpv/bionic,now 0.27.0-2ubuntu4 amd64 [installed] w3m/bionic,now 0.5.3-36build1 amd64 [installed]

okonek commented 6 years ago

Have you got the latest version of the app?

twhiston commented 6 years ago

In my case yes, installed with sudo npm -g i tidal-cli-client@latest

RedHatter commented 6 years ago

I am also experiencing this issue.

ALGW71 commented 6 years ago

(node:2500) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'tw' of undefined─────────────────────────────────────────────────────────────┐ at new module.exports (/usr/local/lib/node_modules/tidal-cli-client/app/UI/SquareImage.js:9:41) │ at new module.exports (/usr/local/lib/node_modules/tidal-cli-client/app/UI/ArtistPanel.js:25:28) at ActivityPanel.showPanel (/usr/local/lib/node_modules/tidal-cli-client/app/UI/ActivityPanel.js:34:37) at Object.communicationEvents.subscribe [as handler] (/usr/local/lib/node_modules/tidal-cli-client/app/UI/MainScreen.js:102:40) at at process._tickCallback (internal/process/next_tick.js:118:7) (node:2500) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:2500) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Also getting this on Ubuntu.

okonek commented 6 years ago

Sorry, I haven't got a lot of time, but I'll try to help you as soon as possible

okonek commented 6 years ago

Could you please check if you have w3m-img installed? On some systems it is a different install from w3m. Thank you for your help! :+1:

okonek commented 6 years ago

Are you installing with apt? Have you got the universe repository enabled?

okonek commented 6 years ago

What error have you got?

leynebe commented 6 years ago

Can confirm same issue on Fedora 27 with necessary packages installed. Using tidal-cli and then pressing CTRL+P crashes it.

(node:7775) UnhandledPromiseRejectionWarning: undefined (node:7775) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:7775) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

okonek commented 6 years ago

Could you update to the latest version and see if it helped?

okonek commented 6 years ago

Ok, @leynebe I resolved your issue in the latest update. I think I can close that issue cause no one is active.