vojtamolda / homebridge-ecobee3-sensors

Homebridge plugin that exposes Ecobee 3 sensors as HomeKit accessories.
https://www.npmjs.com/package/homebridge-ecobee3-sensors
MIT License
26 stars 15 forks source link

Unexpected token e in JSON causing crash #32

Closed tbelcher closed 3 years ago

tbelcher commented 3 years ago

Running homebridge on Raspberry Pi. The Ecobee sensor plugin had been working properly up until a few days ago, and now with it in my config, Homeridge crashes with this error: SyntaxError: Unexpected token e in JSON at position 0 Apr 20 14:00:45 raspberrypi homebridge[25375]: at JSON.parse () Apr 20 14:00:45 raspberrypi homebridge[25375]: at EcobeePlatform. (/usr/local/lib/node_modules/homebridge-ecobee3-sensors/source/platform.js:87:24) Apr 20 14:00:45 raspberrypi homebridge[25375]: at IncomingMessage.emit (events.js:327:22) Apr 20 14:00:45 raspberrypi homebridge[25375]: at endReadableNT (_stream_readable.js:1220:12) Apr 20 14:00:45 raspberrypi homebridge[25375]: at processTicksAndRejections (internal/process/task_queues.js:84:21) Apr 20 14:00:45 raspberrypi homebridge[25375]: [4/20/2021, 2:00:45 PM] Got SIGTERM, shutting down Homebridge...

Any ideas?

Thanks,

Tim

vojtamolda commented 3 years ago

Hello Tim,

It's hard for me to say what's going on just from the stack trace. My best guess is that you have a typo in your config.json file. Good luck with figuring it out!

Vojta