jishi / node-sonos-http-api

An HTTP API bridge for Sonos easing automation. Hostable on any node.js capable device, like a raspberry pi or similar.
http://jishi.github.io/node-sonos-http-api/
MIT License
1.84k stars 463 forks source link

Connect ECONNREFUSED #707

Closed thymon13 closed 5 years ago

thymon13 commented 5 years ago

Hello,

I’ve an error with :

Failure: Error: Connect ECONNREFUSED 192.168.1.24:5005

But I can join 192.168.1.24:5005/zones with all informations, with my webbrowser Nothing on my mirror, but if I stop sonos.sh : I read “loading music…”

Thx in advance. And sorry for my english

thymon13 commented 5 years ago

from http://myIP:5005/myroom/state

{"volume":15,"mute":false,"equalizer":{"bass":null,"treble":null,"loudness":true},"currentTrack":{"artist":"","title":"","album":"","albumArtUri":"","duration":0,"uri":"","trackUri":"","type":"track","stationName":""},"nextTrack":{"artist":"","title":"","album":"","albumArtUri":"","duration":0,"uri":""},"trackNo":null,"elapsedTime":0,"elapsedTimeFormatted":"00:00:00","playMode":{"repeat":"none","shuffle":false,"crossfade":false}}

No title, artist or other... But Volume is updated

jishi commented 5 years ago

I'm not sure why you get a econnrefused against the api ip:port, sounds like some other app that is throwing the error?

Regarding the empty state, do you have any logs from the http app (console output)? Also, are you running latest master (check version in package.json),there was a bug in a dependency before thst caused an error when reading state from the players.

On Tue, 16 Jul 2019, 01:20 thymon13, notifications@github.com wrote:

from http://myIP:5005/myroom/state

{"volume":15,"mute":false,"equalizer":{"bass":null,"treble":null,"loudness":true},"currentTrack":{"artist":"","title":"","album":"","albumArtUri":"","duration":0,"uri":"","trackUri":"","type":"track","stationName":""},"nextTrack":{"artist":"","title":"","album":"","albumArtUri":"","duration":0,"uri":""},"trackNo":null,"elapsedTime":0,"elapsedTimeFormatted":"00:00:00","playMode":{"repeat":"none","shuffle":false,"crossfade":false}}

No title, artist or other... But Volume is updated

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jishi/node-sonos-http-api/issues/707?email_source=notifications&email_token=AAYE2I7UWQ4KS5MYXGBMTRTP7S5YJA5CNFSM4ICIN2YKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ6RMAQ#issuecomment-511514114, or mute the thread https://github.com/notifications/unsubscribe-auth/AAYE2I7E2HS4U5BAUKQ43VTP7S5YJANCNFSM4ICIN2YA .

thymon13 commented 5 years ago

Thanks for your answer. I deleted the node and I reinstalled. It work fine now

THX

jishi commented 5 years ago

It's directly in the console normally when you run the http api. If you used the rpi image, it is stored in /flash/logs IIRC

On Wed, 17 Jul 2019, 03:41 thymon13, notifications@github.com wrote:

Closed #707 https://github.com/jishi/node-sonos-http-api/issues/707.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jishi/node-sonos-http-api/issues/707?email_source=notifications&email_token=AAYE2I6ZCJZ7QHDKC4ANHPLP7YW7FA5CNFSM4ICIN2YKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOSRBSSYI#event-2487429473, or mute the thread https://github.com/notifications/unsubscribe-auth/AAYE2I4S4LVNA6QNCM3H6KTP7YW7FANCNFSM4ICIN2YA .