luc-ass / homebridge-evohome

Homebridge plugin for Honeywell Evohome
29 stars 16 forks source link

Sudden errors occurring - Error during Login: SyntaxError: Unexpected token < in JSON at position 0 #56

Closed cjastennett closed 4 years ago

cjastennett commented 4 years ago

Hi,

started getting this error out of the blue:

[4/24/2020, 10:44:13 AM] [Evohome] Error during Login: SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse () at Request._callback (/homebridge/node_modules/homebridge-evohome/lib/evohome.js:289:29) at Request.self.callback (/homebridge/node_modules/homebridge-evohome/node_modules/request/request.js:185:22) at Request.emit (events.js:223:5) at Request. (/homebridge/node_modules/homebridge-evohome/node_modules/request/request.js:1154:10) at Request.emit (events.js:223:5) at IncomingMessage. (/homebridge/node_modules/homebridge-evohome/node_modules/request/request.js:1076:12) at Object.onceWrapper (events.js:312:28) at IncomingMessage.emit (events.js:228:7) at endReadableNT (_stream_readable.js:1185:12) at processTicksAndRejections (internal/process/task_queues.js:81:21)

I checked my JSON confg file - all is good and nothing has changes, There are no erroneous "<" symbols, and my user ID and password is still there and still valid, Rebooting and restarting has no effect.

Thanks for any assistance you can provide.

cheers

KLucky13 commented 4 years ago

I got the same issues, the service of evohome is currently down. The original app also does not work and also online on their website I can no longer login. Which can happen. What is not ok, is that my entire homebridge is down because off it. Nothing else works anymore because the evohome plugin stopped working. This needs to be looked at

cjastennett commented 4 years ago

OK - thanks for the update. It would seem then that the error handling in this plugin is not contained and handled well, so it is crashing the the whole of the homebridge service. It would be great if this could be resolved.

KLucky13 commented 4 years ago

I'm also just a user, an update on the errorhandling needs to come from the creator of the plugin

cjastennett commented 4 years ago

Absolutely - not expecting you to fix it - sorry if that was inferred.

Interestingly, a seemingly knock-on effect of this plugin erroring was that the Alexa plugin also was failing to connect - so I wonder if there was a cross-pollination of error there due to some kind of unhandled error in the top level sockets/request capabilities. Speaking as only a very amateur developer/coder obvioulsy.

Anyway, is back up and running now, as the Honeywell/Evohome services are now back up.

KLucky13 commented 4 years ago

Yes, mine is also back up and running. In my case my lights etc also stopped working due to this maintenance on the Evohome servers. So that's far from ideal. When the servers of evohome are under maintenance, it's ok/logical that they stop responding in homekit, but I would at least expect that the rest of my domotica keeps running :-)

luc-ass commented 4 years ago

Good point, I am in the middle of the verification process for Homebridge verified plug-ins. I will probably need to fix this anyway as part of the process so keep your eyes open for an update.

On a sidenote configuration is no possible via the config-ui-x interface.

luc-ass commented 4 years ago

Should be fixed as of v0.7.1. Please reopen this issue if you still encounter this issue.