# OPC-UA Error when OPC server is offline

**URL:** https://discourse.nodered.org/t/opc-ua-error-when-opc-server-is-offline/12949
**Category:** General
**Created:** [5 July 2019 10:21 UTC](https://discourse.nodered.org/t/opc-ua-error-when-opc-server-is-offline/12949 "2019-07-05T10:21:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![wasifh](https://avatars.discourse-cdn.com/v4/letter/w/a698b9/32.png) [@wasifh](https://discourse.nodered.org/u/wasifh)
#### Post date: [5 July 2019 10:21 UTC](https://discourse.nodered.org/t/opc-ua-error-when-opc-server-is-offline/12949/1 "2019-07-05T10:21:29Z")

</div>

![OPC](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/2/2c72de1cbe65c67c227d9f2a370fd8c658da957f.png)  
I am having issue with OPC-UA which read hte OPC server connected to PLC. When OPC server is off. The Node-red flow crashes after some time. Is there any wayt o stop in crashing and closing down hte node-red. Seems like it has setting to go for certain number of tries to make a connection. Any idea

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [5 July 2019 10:34 UTC](https://discourse.nodered.org/t/opc-ua-error-when-opc-server-is-offline/12949/2 "2019-07-05T10:34:56Z")

</div>

The node should catch exceptions and behave nicely.

You need to open an issue on the github page for the node ( follow a link from the nodes page on [flows.nodered.org](http://flows.nodered.org)) to flag the issue to the nodes author.

---

<div class="post-metadata">

### Author: ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)
#### Post date: [5 July 2019 10:43 UTC](https://discourse.nodered.org/t/opc-ua-error-when-opc-server-is-offline/12949/3 "2019-07-05T10:43:03Z")

</div>

Looks to be a somewhat known issue: [https://github.com/mikakaraila/node-red-contrib-opcua/issues/89#issuecomment-488303522](https://github.com/mikakaraila/node-red-contrib-opcua/issues/89#issuecomment-488303522)

However, based on those issues on github the node in itself could do with more configuration rather than having to update hardcoded values in the node’s source file 🤷‍♀️

Probably wouldn’t be bad if you post there though to mention you’re seeing the exact same thing.
