luc-ass / homebridge-evohome

Homebridge plugin for Honeywell Evohome
29 stars 16 forks source link

typeerror: Cannot read property 'locationId' of undefined #153

Open PuzzledUser opened 1 year ago

PuzzledUser commented 1 year ago

Further to https://github.com/luc-ass/homebridge-evohome/issues/145#issuecomment-1537164303, browsing the logs I've seen this error repeating 353 times every 5 minutes since:

[05/05/2023, 09:06:35] [Evohome] Error getting locations:

[09/05/2023, 11:01:51] [Evohome] Error getting locations:
 TypeError: Cannot read property 'locationId' of undefined
    at /usr/local/lib/node_modules/homebridge-evohome/lib/evohome.js:173:47
    at arrayMap (/usr/local/lib/node_modules/homebridge-evohome/node_modules/lodash/lodash.js:653:23)
    at Function.map (/usr/local/lib/node_modules/homebridge-evohome/node_modules/lodash/lodash.js:9622:14)
    at /usr/local/lib/node_modules/homebridge-evohome/lib/evohome.js:170:14
    at _fulfilled (/usr/local/lib/node_modules/homebridge-evohome/node_modules/q/q.js:854:54)
    at /usr/local/lib/node_modules/homebridge-evohome/node_modules/q/q.js:883:30
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/homebridge-evohome/node_modules/q/q.js:816:13)
    at /usr/local/lib/node_modules/homebridge-evohome/node_modules/q/q.js:624:44
    at runSingle (/usr/local/lib/node_modules/homebridge-evohome/node_modules/q/q.js:137:13)
    at flush (/usr/local/lib/node_modules/homebridge-evohome/node_modules/q/q.js:125:13)

Honeywell was available and working ok this morning in the app. I restarted Homebridge and all well.

luc-ass commented 1 year ago

Do you think this is a different bug? There was a planned outage recently.

PuzzledUser commented 1 year ago

Note sure, but I was conscious that I was loading various different errors into that one issue. It was unusual to see that issue active for so long and then fixed by a restart.

arnoldligtvoet commented 1 year ago

Can also confirm seeing this every 5 minutes, but a simple restart fixed the issue.

PuzzledUser commented 7 months ago

Just noticed this again, but proceeded with a different error (every 5 minutes prior to the the above error):

[23/11/2023, 17:37:10] [Evohome] Error getting locations:
 Error: getaddrinfo ENOTFOUND tccna.honeywell.com
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26) {
  errno: -3008,
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'tccna.honeywell.com'
}
[23/11/2023, 17:41:51] [Evohome] Error getting locations:
 TypeError: Cannot read property 'locationId' of undefined
    at /usr/local/lib/node_modules/homebridge-evohome/lib/evohome.js:173:47
    at arrayMap (/usr/local/lib/node_modules/homebridge-evohome/node_modules/lodash/lodash.js:653:23)
    at Function.map (/usr/local/lib/node_modules/homebridge-evohome/node_modules/lodash/lodash.js:9622:14)
    at /usr/local/lib/node_modules/homebridge-evohome/lib/evohome.js:170:14
    at _fulfilled (/usr/local/lib/node_modules/homebridge-evohome/node_modules/q/q.js:854:54)
    at /usr/local/lib/node_modules/homebridge-evohome/node_modules/q/q.js:883:30
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/homebridge-evohome/node_modules/q/q.js:816:13)
    at /usr/local/lib/node_modules/homebridge-evohome/node_modules/q/q.js:624:44
    at runSingle (/usr/local/lib/node_modules/homebridge-evohome/node_modules/q/q.js:137:13)
    at flush (/usr/local/lib/node_modules/homebridge-evohome/node_modules/q/q.js:125:13)

Thought it might be a clue and help find a fix to handle this better. I had to restart my homebridge half an hour later as it had become unresponsive (could be a coincidence, but that's why I was browsing the logs).