mikakaraila / node-red-contrib-opcua

A Node-RED node to communicate OPC UA. Uses node-opcua library.
Other
216 stars 197 forks source link

Invalid Channel BadConnectionClosed error on read #733

Open Mradvanyi123 opened 2 months ago

Mradvanyi123 commented 2 months ago

I'm receiving "Invalid Channel BadConnectionClosed" when reading from an OpcUa server running in the same Node-RED instance. I'm assuming the error is thrown here: https://github.com/mikakaraila/node-red-contrib-opcua/blob/master/opcua/102-opcuaclient.js#L1208

Why is this error not thrown in the form node.error('message',msg) ? Why are some errors thrown node.error('message') and others node.error('message'.msg) ? In the case of a failed read action, what is the reason for not retrying?