I am trying to connect to a server with node-opcua, but having a bit of trouble.
Connecting to the same server with the Prosys OPC UA Browser software works just fine.
const client = OPCUAClient.create({
endpointMustExist: false,
securityMode: MessageSecurityMode.SignAndEncrypt,
securityPolicy: SecurityPolicy.Basic256Sha256
});
await client.connect(endpointUrl);
const session = await client.createSession({
userName: data.userName,
password: data.password,
},
function(err) {
console.log(err)
}
);
It connects, but I am getting the error: 'Error: Invalid channel' and it immediatley disconnects.
What does this mean?