node-alarm-dot-com/homebridge-node-alarm-dot-com

Errors in log

Closed this issue · 13 comments

Describe the bug
Errors in log

Node Alarm Dot Com
1.7.2-beta.7
-->

Expected behavior

Screenshots
5/17/2021, 5:53:41 AM [Security System] Logged into Alarm.com as strange4358
5/17/2021, 5:53:42 AM [Security System] UNHANDLED ERROR: TypeError: Cannot read property 'data' of undefined
at /home/hoobs/.hoobs/node_modules/node-alarm-dot-com/dist/index.js:167:69
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Promise.all (index 0)
5/17/2021, 5:53:47 AM [Samsung TV Series 8 65] Failed to pair! Make sure TV is online and you click "Allow" on the popup
5/17/2021, 5:53:48 AM [Samsung TV Series 8 55] Failed to pair! Make sure TV is online and you click "Allow" on the popup
5/17/2021, 5:53:48 AM [Samsung TV 40] Failed to pair! Make sure TV is online and you click "Allow" on the popup
5/17/2021, 5:56:29 AM [Security System] changePartitionState(98182855-127, 3)
5/17/2021, 5:56:37 AM [Security System] changePartitionState(98182855-127, 2)
5/17/2021, 5:56:39 AM [Security System] Updating partition Panel (98182855-127), desiredState=0, prev=2
5/17/2021, 5:57:39 AM [Security System] changePartitionState(98182855-127, 3)
5/17/2021, 5:57:43 AM [HOOBS 9033@Security System Target State] The write handler for the characteristic 'Security System Target State' on the accessory 'Panel' was slow to respond!
5/17/2021, 5:57:58 AM [Security System] TypeError: Cannot read property 'data' of undefined
at /home/hoobs/.hoobs/node_modules/node-alarm-dot-com/dist/index.js:167:69
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Promise.all (index 0)
5/17/2021, 6:04:48 AM [Security System] Error: GET https://www.alarm.com/web/api/systems/systems/8220700 failed: [object Object]
at /home/hoobs/.hoobs/node_modules/node-alarm-dot-com/dist/index.js:465:15
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Promise.all (index 0)
5/17/2021, 6:07:57 AM [Security System] Error: GET https://www.alarm.com/web/api/systems/systems/8220700 failed: [object Object]
at /home/hoobs/.hoobs/node_modules/node-alarm-dot-com/dist/index.js:465:15
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Promise.all (index 0)
5/17/2021, 6:11:41 AM [Security System] Error: GET https://www.alarm.com/web/api/systems/systems/8220700 failed: [object Object]
at /home/hoobs/.hoobs/node_modules/node-alarm-dot-com/dist/index.js:465:15
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Promise.all (index 0)
5/17/2021, 6:18:40 AM [Security System] Error: GET https://www.alarm.com/web/api/systems/systems/8220700 failed: [object Object]
at /home/hoobs/.hoobs/node_modules/node-alarm-dot-com/dist/index.js:465:15
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Promise.all (index 0)
5/17/2021, 6:25:36 AM [Security System] Error: GET https://www.alarm.com/web/api/systems/systems/8220700 failed: [object Object]
at /home/hoobs/.hoobs/node_modules/node-alarm-dot-com/dist/index.js:465:15
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Promise.all (index 0)
5/17/2021, 6:32:49 AM [Security System] Error: GET https://www.alarm.com/web/api/systems/systems/8220700 failed: [object Object]
at /home/hoobs/.hoobs/node_modules/node-alarm-dot-com/dist/index.js:465:15
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Promise.all (index 0)
5/17/2021, 6:37:45 AM [Security System] Error: GET https://www.alarm.com/web/api/systems/systems/8220700 failed: [object Object]
at /home/hoobs/.hoobs/node_modules/node-alarm-dot-com/dist/index.js:465:15
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Promise.all (index 0)
5/17/2021, 6:42:12 AM [Security System] Error: GET https://www.alarm.com/web/api/systems/systems/8220700 failed: [object Object]
at /home/hoobs/.hoobs/node_modules/node-alarm-dot-com/dist/index.js:465:15
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Promise.all (index 0)
5/17/2021, 6:45:57 AM [Security System] Error: GET https://www.alarm.com/web/api/systems/systems/8220700 failed: [object Object]
at /home/hoobs/.hoobs/node_modules/node-alarm-dot-com/dist/index.js:465:15
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Promise.all (index 0)
5/17/2021, 6:53:34 AM [Security System] Error: GET https://www.alarm.com/web/api/systems/systems/8220700 failed: [object Object]
at /home/hoobs/.hoobs/node_modules/node-alarm-dot-com/dist/index.js:465:15
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Promise.all (index 0)
Homebridge System (please complete the following information):

  • Node.js Version:
  • NPM Version:
  • Homebridge Version:
  • Operating System: Raspbian / Ubuntu / Debian / Windows / macOS / Docker
  • Process Supervisor: Docker / Systemd / init.d / pm2 / launchctl / hb-service / other / none

Additional context

Same errors that I am receiving.

Please check out 1.7.2-beta.9 and see if that solved this issue.

Beta 8 appears to have fixed it

This returns in beta 9

[5/18/21, 7:25 AM] [Security System] Error: GET https://www.alarm.com/web/api/systems/systems/8220700 failed: [object Object]
at /home/hoobs/.hoobs/node_modules/node-alarm-dot-com/dist/index.js:464:15
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Promise.all (index 0)

Interesting you say that as beta 8 was a mistake push which didn't process any lights retrieved. I wonder if ECONNECT is tied to a particular device type?

Well first of all I have no lights. The device types I have are 2 Key FOB, 7 Contact sensors (wired) 1 wireless motion sensor, 2 wired motion sensors (effectively one because on the same zone)

I loaded Beta 9 this morning and had same error. Never saw a beta 8 to test.

This happened when disarming

5/22/21, 10:26 AM] [Security System] changePartitionState(98182855-127, 3)

[5/22/21, 10:26 AM] [Security System] Error: Failed to change partition state: Error: POST https://www.alarm.com/web/api/devices/partitions/98182855-127/disarm failed: 403
at /home/hoobs/.hoobs/node_modules/node-alarm-dot-com/dist/index.js:491:15
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)

[5/22/21, 10:26 AM] [Security System] Error: GET https://www.alarm.com/web/api/systems/systems/8220700 failed: [object Object]
at /home/hoobs/.hoobs/node_modules/node-alarm-dot-com/dist/index.js:464:15
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Promise.all (index 0)

I get errors changing all alarm states

Can you please test the latest beta (11) and see if this is still present?

I have found that you really can't predict problems on the server side. There are days that I might have 1 or 2 errors but other that I have 1 or 2 an hour. Found that by re-authenticating the error was cleared and that was the intent of the code change in beta.11. If error ... re-authenticate.

The recovery code was one of my small contributions to 1.7.2-beta.11. Glad to hear that it is working for you as intended.