Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'Partitions' of undefined #7

Open
njmike73 opened this issue Dec 8, 2021 · 2 comments
Open

TypeError: Cannot read property 'Partitions' of undefined #7

njmike73 opened this issue Dec 8, 2021 · 2 comments

Comments

@njmike73
Copy link

njmike73 commented Dec 8, 2021

I am getting the error stated in the title but more info is below: (I did mask the directory it's running in for security)

(node:9468) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'Partitions' of undefined
at TCApi.getStatus (\npm\node_modules\homebridge-tc-security-panel\src\tc.v2.ts:263:63)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at Timeout._onTimeout (
\npm\node_modules\homebridge-tc-security-panel\src\tcAccessory.ts:56:22)
(Use node --trace-warnings ... to show where the warning was created)
(node:9468) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:9468) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

@flipit
Copy link
Contributor

flipit commented Dec 27, 2021

I've created a pull request which should solve the issue. I've not tested it though. I can't where I am. If anyone wants to test and confirm. The code is in the pull request.

@vlamb
Copy link

vlamb commented Jan 16, 2022

My error is similar and causes HomeBridge to restart. (I also made comment in the Pull)
TypeError: Cannot read properties of undefined (reading 'Partitions')
at TCApi.getStatus (/usr/local/lib/node_modules/homebridge-tc-security-panel/src/tc.v2.ts:263:63)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-tc-security-panel/src/tcAccessory.ts:56:22)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants