# Error connecting UPC UA with node

**URL:** <https://discourse.nodered.org/t/error-connecting-upc-ua-with-node/62573>\
**Category:** General\
**Created:** [12 May 2022 21:01 UTC](https://discourse.nodered.org/t/error-connecting-upc-ua-with-node/62573 "2022-05-12T21:01:51Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucka](https://avatars.discourse-cdn.com/v4/letter/l/a183cd/32.png) [@lucka](https://discourse.nodered.org/u/lucka)\
**Post date:** [12 May 2022 21:01 UTC](https://discourse.nodered.org/t/error-connecting-upc-ua-with-node/62573/1 "2022-05-12T21:01:51Z")

</div>

i have this problem when i conect the node with UAExpert I get this msgs

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/2/b2ef48ac5eb9bdc7ba6137b0c6324d4d04d24469.png)

and after few time I get this

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/4/a4f1b8ad0a884aff3a6b92a11af01713091608e1.png)

---

<div class="post-metadata">

**Author:** ![lucka](https://avatars.discourse-cdn.com/v4/letter/l/a183cd/32.png) [@lucka](https://discourse.nodered.org/u/lucka)\
**Post date:** [13 May 2022 10:05 UTC](https://discourse.nodered.org/t/error-connecting-upc-ua-with-node/62573/2 "2022-05-13T10:05:39Z")

</div>

Up......  
Still waiting an answer

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [13 May 2022 11:32 UTC](https://discourse.nodered.org/t/error-connecting-upc-ua-with-node/62573/3 "2022-05-13T11:32:45Z")

</div>

@lucka welcome to the forum!

In your second image, the debug node is covering some of the message and the message is off the screen. If you look in the node-red log, you should see the full msg. Copy and paste it to a response.

In addition, when you have a problem you should provide background information.

- What version of node-red and node.js are you running (you can get this from the start up log)
- what OS and device are you running node read on
- an export of your flow

In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote `````)

````auto
``` 
   code goes here 
```

````

You can edit and correct your post by clicking the pencil ✏ icon.

See this post for more details - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

I recommend watching this playlist: [Node-RED Essentials](https://www.youtube.com/playlist?list=PLyNBB9VCLmo1hyO-4fIZ08gqFcXBkHy-6). The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.

---

<div class="post-metadata">

**Author:** ![lucka](https://avatars.discourse-cdn.com/v4/letter/l/a183cd/32.png) [@lucka](https://discourse.nodered.org/u/lucka)\
**Post date:** [13 May 2022 21:37 UTC](https://discourse.nodered.org/t/error-connecting-upc-ua-with-node/62573/4 "2022-05-13T21:37:25Z")

</div>

thank you sir for your adices  
so this is new image

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/6/86f138ca12abc3a0b6c53316234e0a1e045f60e0.png)

my error msg is

```auto
"OpcUaClientNode: Case A: Endpoint does not contain, 1==None 2==Sign 3==Sign&Encrypt securityMode:[1] securityPolicy:["http://opcfoundation.org/UA/SecurityPolicy#None"]"

```

and this msg also

```auto
"OpcUaClientNode: Case B: UserName & password does not match to server (needed by Sign): undefined undefined"

```

the system is windows 10  
node-red version is V2.2.2  
node js version v16.15.0

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [14 May 2022 00:08 UTC](https://discourse.nodered.org/t/error-connecting-upc-ua-with-node/62573/5 "2022-05-14T00:08:50Z")

</div>

It looks like the message is telling you that you have bad user/password. You need to fix that

---

<div class="post-metadata">

**Author:** ![lucka](https://avatars.discourse-cdn.com/v4/letter/l/a183cd/32.png) [@lucka](https://discourse.nodered.org/u/lucka)\
**Post date:** [14 May 2022 09:06 UTC](https://discourse.nodered.org/t/error-connecting-upc-ua-with-node/62573/6 "2022-05-14T09:06:00Z")

</div>

In which password I didn't used any password

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [14 May 2022 09:45 UTC](https://discourse.nodered.org/t/error-connecting-upc-ua-with-node/62573/7 "2022-05-14T09:45:35Z")

</div>

What are the settings you use in the two OPC nodes?

---

<div class="post-metadata">

**Author:** ![lucka](https://avatars.discourse-cdn.com/v4/letter/l/a183cd/32.png) [@lucka](https://discourse.nodered.org/u/lucka)\
**Post date:** [14 May 2022 10:27 UTC](https://discourse.nodered.org/t/error-connecting-upc-ua-with-node/62573/8 "2022-05-14T10:27:49Z")

</div>

this is setting of uaexpert

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/0/d0fcd5ba08f918ebeeb0e18990e0af3258276c85.png)  
and this is setting of upcua client  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/4/c482907b68f473ab071e3f26cec4b8ea5bb0d688.png)

---

<div class="post-metadata">

**Author:** ![lucka](https://avatars.discourse-cdn.com/v4/letter/l/a183cd/32.png) [@lucka](https://discourse.nodered.org/u/lucka)\
**Post date:** [14 May 2022 10:31 UTC](https://discourse.nodered.org/t/error-connecting-upc-ua-with-node/62573/9 "2022-05-14T10:31:39Z")

</div>

Sir, I used another laptop and I'm installed all software uaexpert node-red all things and I did the same steps and same configuration and its working good  
I don't know where is the problem with this desktop

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [14 May 2022 11:20 UTC](https://discourse.nodered.org/t/error-connecting-upc-ua-with-node/62573/10 "2022-05-14T11:20:19Z")

</div>

You will have to determine what the difference is between the two laptops. It could be a permission issue, a level of software, the os version, your network…

But what you have discovered is that it is not an Node-RED issue which is a step in the right direction

---

<div class="post-metadata">

**Author:** ![lucka](https://avatars.discourse-cdn.com/v4/letter/l/a183cd/32.png) [@lucka](https://discourse.nodered.org/u/lucka)\
**Post date:** [14 May 2022 11:24 UTC](https://discourse.nodered.org/t/error-connecting-upc-ua-with-node/62573/11 "2022-05-14T11:24:32Z")

</div>

the two had the same windows 10  
the same of node js version  
and the same had the same software of uaexpert  
the difference is the 1st I was installed before node js and node-red before and I just upgraded it  
but on the 2nd I installed node js and node-red in the first time

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [14 May 2022 11:36 UTC](https://discourse.nodered.org/t/error-connecting-upc-ua-with-node/62573/12 "2022-05-14T11:36:09Z")

</div>

> [@lucka](#):
>
> the difference is the 1st I was installed before node js and node-red before and I just upgraded i

I don’t understand what you mean by this

---

<div class="post-metadata">

**Author:** ![lucka](https://avatars.discourse-cdn.com/v4/letter/l/a183cd/32.png) [@lucka](https://discourse.nodered.org/u/lucka)\
**Post date:** [14 May 2022 12:03 UTC](https://discourse.nodered.org/t/error-connecting-upc-ua-with-node/62573/13 "2022-05-14T12:03:51Z")

</div>

i mean i had node-red in the 1st laptop but the version was 1.2.0 I just make the upgrade and I installed the uaexpert but when I connected I found this error  
but the 2nd laptop I installed the node red and uaexpert at first time and they working good

---

<div class="post-metadata">

**Author:** ![lucka](https://avatars.discourse-cdn.com/v4/letter/l/a183cd/32.png) [@lucka](https://discourse.nodered.org/u/lucka)\
**Post date:** [14 May 2022 12:06 UTC](https://discourse.nodered.org/t/error-connecting-upc-ua-with-node/62573/14 "2022-05-14T12:06:01Z")

</div>

how i can delete all data of node-red and node js to uninstall all and I clear all data and try again!

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [14 May 2022 12:12 UTC](https://discourse.nodered.org/t/error-connecting-upc-ua-with-node/62573/15 "2022-05-14T12:12:39Z")

</div>

Here are the instructions for doing it on a Linux system so you will have to adjust it for Windows. Since I don’t use Windows I won’t be able to give you and more help

1. `sudo npm -g remove node-red`
2. `sudo npm -g remove node-red-admin`
3. `rm -R ~/.node-red`

---

<div class="post-metadata">

**Author:** ![lucka](https://avatars.discourse-cdn.com/v4/letter/l/a183cd/32.png) [@lucka](https://discourse.nodered.org/u/lucka)\
**Post date:** [14 May 2022 12:18 UTC](https://discourse.nodered.org/t/error-connecting-upc-ua-with-node/62573/16 "2022-05-14T12:18:46Z")

</div>

Thank you so much sir u did the best thank you for advices and helps I waste your time

---

<div class="post-metadata">

**Author:** ![lucka](https://avatars.discourse-cdn.com/v4/letter/l/a183cd/32.png) [@lucka](https://discourse.nodered.org/u/lucka)\
**Post date:** [14 May 2022 12:19 UTC](https://discourse.nodered.org/t/error-connecting-upc-ua-with-node/62573/17 "2022-05-14T12:19:53Z")

</div>

@OriolFM if you can help us please 🥺

---

<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:** [14 May 2022 12:45 UTC](https://discourse.nodered.org/t/error-connecting-upc-ua-with-node/62573/18 "2022-05-14T12:45:45Z")

</div>

How are you connecting with each laptop? It could be something related to the firewall, or that one is using Ethernet and the other is using WiFi, and one has open ports and the other doesn't.

---

<div class="post-metadata">

**Author:** ![lucka](https://avatars.discourse-cdn.com/v4/letter/l/a183cd/32.png) [@lucka](https://discourse.nodered.org/u/lucka)\
**Post date:** [14 May 2022 12:54 UTC](https://discourse.nodered.org/t/error-connecting-upc-ua-with-node/62573/19 "2022-05-14T12:54:47Z")

</div>

yes  
the 2nd laptop that is working is connecting with wifi  
but the first is connecting with cable ethernet

---

<div class="post-metadata">

**Author:** ![lucka](https://avatars.discourse-cdn.com/v4/letter/l/a183cd/32.png) [@lucka](https://discourse.nodered.org/u/lucka)\
**Post date:** [14 May 2022 17:38 UTC](https://discourse.nodered.org/t/error-connecting-upc-ua-with-node/62573/20 "2022-05-14T17:38:57Z")

</div>

up.......no solution

[Next page](https://discourse.nodered.org/t/error-connecting-upc-ua-with-node/62573.md?page=2)
