FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
09-04-2023 01:52 PM
I have created opcua certificate for my webclient to communicate to the opc ua server in the ctrlX CORE. i can establish the connection without any issue but sometime i am getting this kind of error msg :
client_secure_channel_layer :236 requestData not found for requestId = 84 try with 85
Error writing data: Invalid message header detected
Error writing data: Invalid message header detected
Writing data: ns=2;s=plc/app/Application/
Error writing data: Invalid Channel BadConnectionClosed
Error writing data: Invalid Channel BadConnectionClosed
and i think because of that write operation is not successful.
do I have to create proper certificate for reliable communication? I need help in this regard.
I can not attach certificate here because of unsupported datatype.
Thank you!!
Solved! Go to Solution.
09-04-2023 05:21 PM
Hello,
the certificates are normally checked when the connection is initiated, not during the communication. But you wrote, that you can establish the communication, so I guess the certificates are not the problem.
The error message indicates a write command to the PLC but "ns=2;s=plc/app/Application/" is not a valid PLC variable. The name of the global variable list and the variable name is missing, it should be something like "ns=2;s=plc/app/Application/sym/GVL/myInteger". Could it be that you use a wrong/invalid nodeID for this write command?
Where do you get the error message, from your client? Which client do you use and which version of our OPC UA server?
Can you create a Wireshark trace that covers the error? Please use a connection without encryption for the trace, otherwise we can't read it.
greetings Christian
09-05-2023 08:43 AM
Good morning,
Yes, correct node id contain in this message:
Writing data: ns=2;s=plc/app/Application/sym/mxA_04_Jog_Fast/A1_X_M true
07:20:37.732Z :client_secure_channel_layer :236 requestData not found for requestId = 84 try with 85
Error writing data: Invalid message header detected
Error writing data: Invalid message header detected
Writing data: ns=2;s=plc/app/Application/sym/mxA_04_Jog_Fast/A1_X_M false
Error writing data: Invalid Channel BadConnectionClosed
Error writing data: Invalid Channel BadConnectionClosed
I am getting this error message in my vscode console where we have webclient. this message is not too frequent but sometime. I am using OPC UA server (1.20.1)
09-05-2023 09:11 AM
Good morning,
Please create a Wireshark trace that covers the error, so we can take a look at it. Which OPC UA SDK is used for your OPC UA client?
greetings Christian
09-14-2023 03:50 PM
Hello,
we are not using any SDK for opc ua client. client is created using javascript. this issue is not happening every time and sometime there is no any sessage in the console.
11-03-2023 03:33 PM
Is this still an issue or can this topic be closed?