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

[Bug]: Cannot read properties of undefined (reading 'value') at WebSocket.ws.onmessage #319

Closed
sansonifabio opened this issue Nov 12, 2022 · 3 comments
Assignees
Labels

Comments

@sansonifabio
Copy link

Contact Details

No response

What happened?

Hallo Jey-Cee,
seit der Phoscon Beta Version 2.19.02 habe ich folgendes Problem. Wenn ich über die Phoscon App ein neues Gerät suchen lassen und es hinzugefügt wird stürzt der Deconz Adapter ab, startet dann neu und arbeitet wieder zuverlässig weiter.
Wie gesagt, das passiert nur bei Gerätesuche in über die Phocon App. Kannst du mal bitte schauen was da los ist?
Grüße Fabio

Adapter Version

1.3.21

deConz (Phoscon) Version

2.19.02 / 19.9.2022

JS-Controller Version

4.0.23

Node JS Version

16.18.1

NPM Version

8.19.2

Operating System

Debian

Relevant log output

deconz.0
2022-11-12 14:58:18.265	info	deConz Version: 2.19.2; API version: 1.16.0

deconz.0
2022-11-12 14:58:18.232	info	starting. Version 1.3.21 (non-npm: Jey-Cee/ioBroker.deconz) in /opt/iobroker/node_modules/iobroker.deconz, node: v16.18.1, js-controller: 4.0.23
host.nuc
2022-11-12 14:58:17.665	info	instance system.adapter.deconz.0 started with pid 17489
host.nuc
2022-11-12 14:57:47.608	info	Restart adapter system.adapter.deconz.0 because enabled
host.nuc
2022-11-12 14:57:47.607	error	instance system.adapter.deconz.0 terminated with code 6 (UNCAUGHT_EXCEPTION)

deconz.0
2022-11-12 14:57:47.541	warn	get state error: Connection is closed.

deconz.0
2022-11-12 14:57:47.540	warn	Could not perform strict object check of state deconz.0.Sensors.242.temperature: DB closed

deconz.0
2022-11-12 14:57:47.539	warn	get state error: Connection is closed.

deconz.0
2022-11-12 14:57:47.539	warn	Could not perform strict object check of state deconz.0.Sensors.242.temperature: DB closed

deconz.0
2022-11-12 14:57:47.534	warn	get state error: Connection is closed.

deconz.0
2022-11-12 14:57:47.533	warn	get state error: Connection is closed.

deconz.0
2022-11-12 14:57:47.025	warn	Terminated (UNCAUGHT_EXCEPTION): Without reason

deconz.0
2022-11-12 14:57:47.025	info	terminating

deconz.0
2022-11-12 14:57:47.025	info	cleaned everything up...

deconz.0
2022-11-12 14:57:47.024	error	Cannot read properties of undefined (reading 'value')

deconz.0
2022-11-12 14:57:47.024	error	TypeError: Cannot read properties of undefined (reading 'value') at WebSocket.ws.onmessage (/opt/iobroker/node_modules/iobroker.deconz/main.js:621:68) at runMicrotasks (<anonymous>) at runNextTicks (node:internal/process/task_queues:61:5) at processImmediate (node:internal/timers:437:9)

deconz.0
2022-11-12 14:57:47.023	error	unhandled promise rejection: Cannot read properties of undefined (reading 'value')

deconz.0
2022-11-12 14:57:47.022	error	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().

Anything else?

Hello Jey Cee,
since Phoscon Beta Version 2.19.02 I have the following problem. If I use the Phoscon app to search for a new device and it is added, the Deconz adapter crashes, then restarts and continues to work reliably.
As I said, this only happens when searching for devices via the Phocon app. Can you please see what's going on?
Greetings Fabio

@Jey-Cee
Copy link
Owner

Jey-Cee commented Nov 19, 2022

Hi Fabio,
dauert etwas bis ich mich darum kümmern kann.

@sansonifabio
Copy link
Author

Hallo Christoph,
alles gut. Mach wenn du Zeit hast, das eilt nicht.
Grüße
Fabio

@sansonifabio
Copy link
Author

Danke schön 👍

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

No branches or pull requests

2 participants