# Node-red :opc-ua-server msg error Error: The connection may have been rejected by server

**URL:** https://discourse.nodered.org/t/node-red-opc-ua-server-msg-error-error-the-connection-may-have-been-rejected-by-server/95172
**Category:** General
**Created:** [6 February 2025 08:28 UTC](https://discourse.nodered.org/t/node-red-opc-ua-server-msg-error-error-the-connection-may-have-been-rejected-by-server/95172 "2025-02-06T08:28:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![gautamt572](https://avatars.discourse-cdn.com/v4/letter/g/898d66/32.png) [@gautamt572](https://discourse.nodered.org/u/gautamt572)
#### Post date: [6 February 2025 08:28 UTC](https://discourse.nodered.org/t/node-red-opc-ua-server-msg-error-error-the-connection-may-have-been-rejected-by-server/95172/1 "2025-02-06T08:28:58Z")

</div>

In Node-red flow while configuring the opcua server getting below error ,we have added certificate and credential as well still getting same error.  
Note:The flow was working before. After the Restart of OPCUA server ,we are facing this error nothing is changed in the flow.

Error Message:  
1.opc-ua-server  
msg : error  
"Error: The connection may have been rejected by server,↵Err = (Secure Channel Closed)"

2.Error: The connection may have been rejected by server,  
Err = (Invalid message header detected)

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [6 February 2025 08:37 UTC](https://discourse.nodered.org/t/node-red-opc-ua-server-msg-error-error-the-connection-may-have-been-rejected-by-server/95172/2 "2025-02-06T08:37:21Z")

</div>

check the node-red logs. there will be more to the error. like this one: [Opc Ua and Certificate - #3 by matteovi](https://discourse.nodered.org/t/opc-ua-and-certificate/81023/3)

---

<div class="post-metadata">

### Author: ![gautamt572](https://avatars.discourse-cdn.com/v4/letter/g/898d66/32.png) [@gautamt572](https://discourse.nodered.org/u/gautamt572)
#### Post date: [11 February 2025 10:24 UTC](https://discourse.nodered.org/t/node-red-opc-ua-server-msg-error-error-the-connection-may-have-been-rejected-by-server/95172/3 "2025-02-11T10:24:26Z")

</div>

we have used self signed certificate and credential also valid, still we are not able to connect with server getting below error now.

[OPCUA-IIoT-Browser:a96e7020050a59e2] Error: Client Not sessionActive On Browser  
[error] [OPCUA-IIoT-Connector:opc-ua-server] Error: Fail to connect to server at opc.tcp:// to collect server's certificate (in findEndpoint)  
(err =The connection may have been rejected by server,  
Err = (premature socket termination socket timeout : timeout=60000))

---

<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: [12 May 2025 10:24 UTC](https://discourse.nodered.org/t/node-red-opc-ua-server-msg-error-error-the-connection-may-have-been-rejected-by-server/95172/4 "2025-05-12T10:24:57Z")

</div>

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