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

Crash when ventilation unit is shutdown #119

Open
Nuutti321 opened this issue Oct 10, 2024 · 1 comment
Open

Crash when ventilation unit is shutdown #119

Nuutti321 opened this issue Oct 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Nuutti321
Copy link

A crash happens when the ventilation unit is shutdown for filter change or other purpose.

Logs:
2024-10-09T11:44:17.820Z [modbus] debug: Reading coil address 0, length 13
2024-10-09T11:44:22.827Z [modbus] error: Failed to read coil address 0, length 13
node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^

[UnhandledPromiseRejection: 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(). The promise rejected with the reason "#".] {
code: 'ERR_UNHANDLED_REJECTION'
}

@Jalle19 Jalle19 added the bug Something isn't working label Nov 24, 2024
@Jalle19
Copy link
Owner

Jalle19 commented Nov 24, 2024

The error handling in general needs to be refactored so that there are no UnhandledPromiseRejection warnings thrown anymore, that will most likely fix this issue automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants