Supergiovane / node-red-contrib-sonospollytts

Play speech TTS using Sonos.
https://www.facebook.com/supergiovaneDev
MIT License
12 stars 6 forks source link

Node-Red stops starting after latest update #11

Closed tsprivate closed 5 years ago

tsprivate commented 5 years ago

Hi,

I was using your node for a while without issues. I was just updating to your latest node and Node-Red was crashing with sonospollytts failure message at the start-up. There was no other change to the flow!

1) How can I install a previous version of your node 2) what do you need to investigate the current crash ? image

regards

Supergiovane commented 5 years ago

I'll investigate your issue. Have no other users reporting that. I'll revert to you ASAP

Supergiovane commented 5 years ago

By reading yourlog, it seems that this causes the problem: node.SonosClient.getCurrentState().then(state=>{... It seems that she SonosClient isn't correctly assigned. No changes where made in that part of the code since the beginning.

Can you please post here the output of the command: npm show sonos version

You can try to reinstall the dependencies of the sonospollytts node in this way, from a command prompt:
cd /home/pi/.node-red/node_modules/node-red-contrib-sonospollytts npm update

To install a previous version, use this command: npm install node-red-contrib-sonospollytts@1.0.8 or even older, for example npm install node-red-contrib-sonospollytts@1.0.0

Thanks.

tsprivate commented 5 years ago

Hi, thank you for the quick response. As said I was using an earlier version ( I thiink 2+ months) old and it was working fine and I just updated your node

1) the result of "npm show sonos version" is 1.10.1 2) I have re-installed as you advised and the update was successful. The node is working as before

Thanks for the great help!

Supergiovane commented 5 years ago

The sonos node 1.10.1 is up to date. Good to hear that now it works. Maybe something was missing. Bye!