nabbl / node-red-contrib-google-home-notify

Node-Red Node to send Text messages for Google Home to read from
MIT License
17 stars 10 forks source link

Get Key Failed From Google issue come back! #29

Open edmarts opened 3 years ago

edmarts commented 3 years ago

Hi! I'm having a problem with "Get Key Failed From Google"

The plugin works normally and after a while it stops and displays this error message. After I restart the homebridge and node-red it will work for a while and then stop again.

I already updated node.js but the error continues. Any tips?

cheechie commented 3 years ago

I am having the same issue.

tomdk commented 3 years ago

This is because a dependency updates from 0.0.4 to 0.0.5. The developer should adjust this in his package. I tried to do this manually without any success.

https://github.com/noelportugal/google-home-notifier/issues/46

kneibdev commented 3 years ago

Same issue. Not very familiar with this. Can it be done by changing dependency to 0.0.5 ?

cmuench commented 3 years ago

The problem ist the google-tts-api package inside the dependency google-home-notify. I updated it manually to version 0.0.6. After that the error is gone.

PR is created. https://github.com/nabbl/google-home-notifier/pull/2 After that this module can be updated.

edmarts commented 3 years ago

@cmuench How to upgrade to 0.0.6? Could you help?

kneibdev commented 3 years ago

Edit .node-red/node_modules/google-home-notifier-volume-adjustable/package.json:

  "dependencies": {
    "bluebird": "3.5.1",
    "castv2-client": "^1.2.0",
    "google-tts-api": "0.0.6"
  },

and then

npm update

And then restart node-red. Works for me! Thanks @cmuench for the help!

cmuench commented 3 years ago

I use the docker version.

Please note that a manual change of a npm managed package is not the right way. I changed that to investigate the issue. So... change it on your own risk.

  1. cd /data/node_modules/google-home-notify
  2. open "packages.json"
  3. Change "google-tts-api" dependency to "0.0.6"
  4. Run "npm update"
kneibdev commented 3 years ago

Yeah you're right...but I needed a quick solution for now.

edmarts commented 3 years ago

I'm using this now: https://github.com/Hypnos3/node-red-contrib-cast

Works much better!!!