node-red-contrib-knx-easy icon indicating copy to clipboard operation
node-red-contrib-knx-easy copied to clipboard

Crash when IP interface is disconnected

Open cody82 opened this issue 3 years ago • 0 comments

I am getting this error after some time when I switch off the IP Interface(Siemens SWG1 148-1AB22) and a KNX easy node is connected:

22 Apr 01:21:39 - [red] Uncaught Exception:
22 Apr 01:21:39 - Error [ERR_SOCKET_DGRAM_NOT_RUNNING]: Not running
    at healthCheck (dgram.js:897:11)
    at Socket.send (dgram.js:622:3)
    at fsm.FSM.send (/home/cody/.node-red/node_modules/knx/src/Connection.js:177:15)
    at fsm._onEnter (/home/cody/.node-red/node_modules/knx/src/FSM.js:110:16)
    at fsm.transition (/home/cody/.node-red/node_modules/machina/lib/machina.js:653:28)
    at fsm.Fsm.<computed> [as transition] (/home/cody/.node-red/node_modules/machina/lib/machina.js:466:63)
    at fsm._onEnter (/home/cody/.node-red/node_modules/knx/src/FSM.js:66:14)
    at fsm.transition (/home/cody/.node-red/node_modules/machina/lib/machina.js:653:28)
    at fsm.Fsm.<computed> [as transition] (/home/cody/.node-red/node_modules/machina/lib/machina.js:466:63)
    at Timeout._onTimeout (/home/cody/.node-red/node_modules/knx/src/FSM.js:98:22)
    at listOnTimeout (internal/timers.js:554:17)
    at processTimers (internal/timers.js:497:7)

This does not always happen when the IP interface is offline as the KNX easy node is able to reconnect when it is online again.

Steps to reproduce:

  1. Connect a KNX easy node to an IP Interface.
  2. Switch off the IP Interface.
  3. Node Red crashes after some time.

cody82 avatar Apr 22 '21 06:04 cody82