alladdin / node-lox-ws-api

Node JS WebSocket Loxone™ API
MIT License
32 stars 23 forks source link

Websocket Connection closed: 1006 Socket Error: undefined ERR_STREAM_WRITE_AFTER_END #26

Open LukasLicko opened 2 years ago

LukasLicko commented 2 years ago

Hello, I have problem with connection to the miniserver. I have same errors during the connection.

11:56:24] [LoxoneWs] Platform - Waiting 8 seconds until initial state is retrieved via WebSocket. [05/12/2021, 11:56:24] TypeError: Cannot read properties of undefined (reading 'closeDescription') at Connection.<anonymous> (/usr/local/lib/node_modules/homebridge-loxone-connect-pieter/node_modules/node-lox-ws-api/lib/Connection.js:62:62) at WebSocketClient.emit (node:events:390:28) at WebSocketClient.failHandshake (/usr/local/lib/node_modules/homebridge-loxone-connect-pieter/node_modules/websocket/lib/WebSocketClient.js:339:10) at ClientRequest.<anonymous> (/usr/local/lib/node_modules/homebridge-loxone-connect-pieter/node_modules/websocket/lib/WebSocketClient.js:278:18) at ClientRequest.emit (node:events:390:28) at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:623:27) at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17) at Socket.socketOnData (node:_http_client:487:22) at Socket.emit (node:events:390:28) at addChunk (node:internal/streams/readable:315:12) [05/12/2021, 11:56:24] Got SIGTERM, shutting down Homebridge...

is described here more: https://github.com/Sroose/homebridge-loxone-ws/issues/51#issuecomment-798300660

I use latest version of homebridge-loxone-ws or also I try with another one. I get still same error.

Raspberry pi3 OS Raspbian GNU/Linux Bullseye (11) Node.js Version v16.13.0 Npm Version v8.1.4

Do you can help me? Thank you