caseyjhol / node-red-contrib-tplink

A collection of Node-RED nodes for TP-Link Smart Home devices
https://www.npmjs.com/package/node-red-contrib-tplink-iot
MIT License
16 stars 15 forks source link

Unexpected Node Error #62

Closed SDupuie closed 1 year ago

SDupuie commented 2 years ago

Happens a few times per day on average.

I was told by the Node-RED Github to report it here. They also said to inform the author that calling node.error in a catch call back causes this error e.g. https://github.com/caseyjhol/node-red-contrib-tplink/blob/15aae36380263a40977a2634e8d340af49310610/nodes/kasa.js#L335

My Node-RED installation is being hosted on Mac OS X Monterey 12.5.1.

2 Sep 13:29:48 - [error]


Unexpected Node Error


Info: Node object is not a node-red Node Stack: Error: TCP Socket Closed. segment:0 hadError:false at Socket. (/Users/Scott/.node-red/node_modules/tplink-smarthome-api/lib/network/tcp-socket.js:104:31) at Object.onceWrapper (node:events:642:26) at Socket.emit (node:events:527:28) at TCP. (node:net:709:12)

caseyjhol commented 1 year ago

Resolved in v1.0.1