# OPC-UA Error: "Invalid Channel BadConnectionClosed"

**URL:** <https://discourse.nodered.org/t/opc-ua-error-invalid-channel-badconnectionclosed/56386>\
**Category:** Industrial\
**Created:** [10 January 2022 10:17 UTC](https://discourse.nodered.org/t/opc-ua-error-invalid-channel-badconnectionclosed/56386 "2022-01-10T10:17:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![OriolFM](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/oriolfm/32/30710_2.png) [@OriolFM](https://discourse.nodered.org/u/OriolFM)\
**Post date:** [10 January 2022 10:17 UTC](https://discourse.nodered.org/t/opc-ua-error-invalid-channel-badconnectionclosed/56386/1 "2022-01-10T10:17:24Z")

</div>

I have been developing a system to read information from some production lines using OPC-UA.

After a bit of a rough start, my system currently includes 4 lines that are working without incidents.

I'm trying to include two more lines from the same vendor in the system, they use the same type of configuration and some of the modules in the machines are identical:

[![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/2/a2f47b891acf72051c4c669f347849ca39e75e23.png)](https://user-images.githubusercontent.com/61776954/148747898-dfebb468-1abf-4eea-9fe8-566c5081c6d1.png)

However, one of the lines connects in the beginning but later it times out, giving some errors. At the same time, UAExpert does not report any network issues that would justify the connection problems, and just keeps showing the normal parameters.

With the last line is even worse: it does not connect, it reports that the connection attempt has been rejected by server/timed out. However, UAExpert can access and display the values I need to read without any issues, and the configuration data is exactly the same.

[![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/0/903797ed1f5733a835ba2017513d1b31abd360a7.png)](https://user-images.githubusercontent.com/61776954/148748351-33308401-8d6f-43bb-ba63-d82ccb085e07.png)

In addition to that, I do have a catch error node in the same tab, but it does not seem to work with the aforementioned errors.

Any ideas on what would cause that?

(I already opened error ticket #371 on the Github OPC-UA node page, but I wanted to ask in case some of you encountered the same issue and could solve it on your own).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [11 March 2022 10:17 UTC](https://discourse.nodered.org/t/opc-ua-error-invalid-channel-badconnectionclosed/56386/2 "2022-03-11T10:17:50Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
