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?
[{"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":""}]