Unstable client connection to a Sign&Encrypt server #1237
-
Hi! I have a asyncua server using The problem I'm facing is the following: if an open62541 client losses connection to that server (eg., due to an unstable network connection), it triggers "BadConnectionClosed" and "BadSecurityChecksFailes" errors, and the client dies. A "Basic" security policy doesn't trigger the errors. I'm not sure if this is related, but every time I connect to the server with UaExpert, I get two warnings (as below): "BadCertificateUseNotAllowed" and "BadCertificateUriInvalid". After ignoring the two warnings, a connection is established. I noticed that during the network glitches, UaExpert also triggers "BadConnectionClosed" and "BadSessionIdInvalid" errors in its log. The two warnings are shown again, and after ignoring them the connection is usually re-established. Sometimes it's not, and I need to manually disconnect and reconnect to resume communicating with the server. Do you have any recommendations on how to make the client connection more robust against the glitches? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Did you change your application uri? Because the uri must match urn:opcua:python:server or you must change the alternate name uri parameter in the script. |
Beta Was this translation helpful? Give feedback.
Did you change your application uri? Because the uri must match urn:opcua:python:server or you must change the alternate name uri parameter in the script.