Closed heftyfunseeker closed 4 years ago
Was able to login again. I find logging in with the kumo ios app pretty unreliable. I imagine we just need to gracefully handle the borked kumo response. Also, thank you very much for this plugin! I have the direct control flag on and it's working great :)
Thanks. I’ll see if I can catch that error to avoid that issue cropping up again. Cheers, Fraser
I think I'm having a similar issue here. In trying to debug my other temperature issue ( #6 ) - I'm finding I'm getting the same types of errors:
(node:20849) UnhandledPromiseRejectionWarning: InvalidCharacterError:
at /usr/local/lib/node_modules/homebridge-kumo/node_modules/base-64/base64.js:23:36
at Object.--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 39)
(node:20849) UnhandledPromiseRejectionWarning: InvalidCharacterError:
at /usr/local/lib/node_modules/homebridge-kumo/node_modules/base-64/base64.js:23:36
at Object.
Ok. So the original error that was triggered here by a malformed json response from the kumo server will now, hopefully be caught and just cause the plugin to fail gracefully (i.e. with appropriate log response).
at KumoApi.acquireSecurityToken (/usr/lib/node_modules/homebridge-kumo/src/kumo-api.ts:126:18)
Will be fixed in 1.2.2
Restarted homebridge and having trouble logging in now. I've been able to successfully login 1/4 times.