# Client Crash when trying events listening

**URL:** https://discourse.nodered.org/t/client-crash-when-trying-events-listening/83692
**Category:** Industrial
**Tags:** docker, opcua
**Created:** [13 December 2023 18:34 UTC](https://discourse.nodered.org/t/client-crash-when-trying-events-listening/83692 "2023-12-13T18:34:41Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![rui.silva](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rui.silva](https://discourse.nodered.org/u/rui.silva)
#### Post date: [13 December 2023 18:34 UTC](https://discourse.nodered.org/t/client-crash-when-trying-events-listening/83692/1 "2023-12-13T18:34:41Z")

</div>

Hello,

I'm trying the example flow for event listening, and only changing the OPC Server address.  
I'm using node-red-contrib-opcua v:0.2.320 on a docker container with the latest version of node-red.

When I inject , the client crashes with the following error:  
` 13 Dec 18:23:19 - [red] Uncaught Exception: 13 Dec 18:23:19 - [error] Error: cannot find conditionRefreshId at /data/node_modules/node-opcua-client/source/alarms_and_conditions/client_tools.ts:58:35 at /data/node_modules/node-opcua-client/source/private/client_session_impl.ts:1459:13 at /data/node_modules/node-opcua-client/source/private/client_session_impl.ts:1554:13 at ClientSecureChannelLayer.<anonymous> (/data/node_modules/node-opcua-client/source/private/client_session_impl.ts:1629:20) at modified_callback (/data/node_modules/node-opcua-secure-channel/source/client/client_secure_channel_layer.ts:1500:31) at process_request_callback (/data/node_modules/node-opcua-secure-channel/source/client/client_secure_channel_layer.ts:142:5) at ClientSecureChannelLayer._on_message_received (/data/node_modules/node-opcua-secure-channel/source/client/client_secure_channel_layer.ts:963:9) at MessageBuilder.<anonymous> (/data/node_modules/node-opcua-secure-channel/source/client/client_secure_channel_layer.ts:481:22) at MessageBuilder.emit (node:events:513:28) at MessageBuilder._decodeMessageBody (/data/node_modules/node-opcua-secure-channel/source/message_builder.ts:362:26)`

I've tryied the following address, that I got using UAExpert software.  
opc.tcp://10.15.50.3:4840/comoneo/server/  
opc.tcp://10.15.50.3:4840/

I also tryied changing the event type for a custom event ns2;i=1 and ns=2;i=16 (got the ID from UaExpert)

On UAexpert I can get the events without problem.

I'm trying firstly to get all events, But in the future would like get a specific one only.

Any help?

```auto
[{"id":"5d665294.f65f14","type":"tab","label":"EVENTS","disabled":false,"info":""},{"id":"d72f52a6.35fa3","type":"OpcUa-Event","z":"5d665294.f65f14","root":"ns=0;i=2253","activatecustomevent":true,"eventtype":"i=2041","customeventtype":"ns=2;i=1","name":"All events","x":420,"y":120,"wires":[["ae628046.ca67c"]]},{"id":"96c3ea4c.7897e8","type":"inject","z":"5d665294.f65f14","name":"Subscribe events","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":"","topic":"","payloadType":"str","x":220,"y":120,"wires":[["d72f52a6.35fa3"]]},{"id":"ae628046.ca67c","type":"OpcUa-Client","z":"5d665294.f65f14","endpoint":"d1892aeb5891b30d","action":"events","deadbandvalue":"","time":10,"timeUnit":"s","localfile":"","localkeyfile":"","securitymode":"None","securitypolicy":"None","folderName4PKI":"","useTransport":false,"maxChunkCount":"","maxMessageSize":"","receiveBufferSize":"","sendBufferSize":"","name":"Prosys events","x":620,"y":120,"wires":[["67203130.a7a05"],[]]},{"id":"67203130.a7a05","type":"debug","z":"5d665294.f65f14","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":830,"y":120,"wires":[]},{"id":"d1892aeb5891b30d","type":"OpcUa-Endpoint","endpoint":"opc.tcp://10.15.50.3:4840/comoneo/","secpol":"None","secmode":"None","none":false,"login":false,"usercert":false,"usercertificate":"","userprivatekey":""}]

```

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [13 December 2023 19:25 UTC](https://discourse.nodered.org/t/client-crash-when-trying-events-listening/83692/2 "2023-12-13T19:25:38Z")

</div>

Please put messages and logs into code fences as well as flows, it makes it very much easier to read.

---

<div class="post-metadata">

### Author: ![rui.silva](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rui.silva](https://discourse.nodered.org/u/rui.silva)
#### Post date: [18 December 2023 11:15 UTC](https://discourse.nodered.org/t/client-crash-when-trying-events-listening/83692/3 "2023-12-18T11:15:41Z")

</div>

Any help please?

---

<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: [16 February 2024 11:15 UTC](https://discourse.nodered.org/t/client-crash-when-trying-events-listening/83692/4 "2024-02-16T11:15:53Z")

</div>

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