potrudeau / homebridge-messenger

Send HomeKit messages with HomeBridge (Pushover / IFTTT / Email)
MIT License
105 stars 9 forks source link

homebridge-messenger crashing Homebridge upon Pushover message send attempt #17

Closed JeffroDB closed 3 years ago

JeffroDB commented 3 years ago

Node.js Version @ 14.15.3

Npm @ 6.14.10

homebridge-messenger @ 0.0.6

My credentials are correct. Triple checked. I'm able to receive iOS Pushover messages originated from the Pushover website.

{ "name": "OurMessenger", "services": { "pushover": { "user": "xxxxxxx.x.xxxxxx@gmail.com", "token": "##############################" }, "email": { "smtpPort": 8080 } }, "messages": [ { "name": "Test1 Message", "type": "pushover", "text": "This is a test", "priority": 1, "sound": "pushover" } ],

Here's the Homebridge log entry capturing startup and then the crash.

[12/27/2020, 9:26:28 AM] [OurMessenger] Initializing HomebridgeMessenger accessory... [12/27/2020, 9:26:28 AM] [OurMessenger] Added Main Switch : OurMessenger [12/27/2020, 9:26:28 AM] [OurMessenger] Main Switch status : true [12/27/2020, 9:26:28 AM] [OurMessenger] Added pushover : Test1 Message ... ... ... [12/27/2020, 9:27:47 AM] [OurMessenger] Test1 Message : Message sent to ############################## [12/27/2020, 9:27:47 AM] Error: application token is invalid at Pushover.errors (/usr/local/lib/node_modules/homebridge-messenger/node_modules/pushover-notifications/lib/pushover.js:83:12) at IncomingMessage. (/usr/local/lib/node_modules/homebridge-messenger/node_modules/pushover-notifications/lib/pushover.js:167:11) at IncomingMessage.emit (events.js:327:22) at endReadableNT (internal/streams/readable.js:1327:12) at processTicksAndRejections (internal/process/task_queues.js:80:21) [12/27/2020, 9:27:47 AM] Got SIGTERM, shutting down Homebridge... [12/27/2020, 9:27:52 AM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null [12/27/2020, 9:27:57 AM] [HB Supervisor] Restarting Homebridge...