-
Notifications
You must be signed in to change notification settings - Fork 62
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
[Bug]: Unhandled promise rejection #918
Comments
Thanks for reporting a new issue @Diginix!
Otherwise this issue will be closed. |
Redis? Maybe not enough memory left? |
No redis and memory usage of proxmox VM: 86.90% (6.95 GiB of 8.00 GiB) |
This is an issue with the states DB. What should happen if the getState / setState failed? It's not just catching an exception. What happens afterwards if the value is missing. |
I have tested some relay switches r/w from iobroker and in Shelly app. All was updated on both sides in realtime. |
Nach Update auf v6.7.0 im Log:
Ist aber nur einmal nach dem Update im Log. |
I'm sure that
Shelly device
No response
Protocol
CoAP / CoIoT
The problem
each instance restart leads to the following log errors. the instance is green and seems to run.
edit: after downgrade to 6.6.1 i get the same error with this version. such log error never exists in all old log files until 9th december with some shelly 6.6.1 restarts.
iobroker.current.log (in debug mode!)
2023-12-22 13:33:18.727 - warn: shelly.0 (1037952) get state error: Connection is closed.
2023-12-22 13:33:18.733 - error: shelly.0 (1037952) 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().
2023-12-22 13:33:18.733 - error: shelly.0 (1037952) unhandled promise rejection: DB closed
2023-12-22 13:33:18.895 - error: shelly.0 (1037952) Error: DB closed
at Redis.sendCommand (/opt/iobroker/node_modules/ioredis/built/redis/index.js:636:24)
at Redis.get (/opt/iobroker/node_modules/ioredis/built/commander.js:122:25)
at StateRedisClient.setState (/opt/iobroker/node_modules/@iobroker/db-states-redis/src/lib/states/statesInRedisClient.ts:726:40)
at Shelly._setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:7710:33)
2023-12-22 13:33:18.895 - error: shelly.0 (1037952) DB closed
Version of nodejs
18.17.1
Version of ioBroker js-controller
5.0.17
Version of adapter
6.7.0
The text was updated successfully, but these errors were encountered: