KEPServerEX 6 with Python #1350
Unanswered
AndresParra11
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Security None just the secruity of the communication. You maybe still need a useser + password or a certificate, to login. That is what the errorcode BadIdentityTokenInvalid means. Did you try to connect via UAExpert? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Likely username and password. Projects in Kepware don't allow anonymous user by default. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In KEPServerEX 6 I have the following configuration (OPC UA Configuration Manager):
In device 1 channel 1, I have two tags to test the connection:
I have Python 3.11 installed and I'm using Visual Studio Code (VSC). I already installed the asyncua library with the "pip install asyncua" command from the VSC terminal. And I have the following code:
And it throws me the following errors:
ARNING:asyncua.client.client:Requested session timeout to be 3600000ms, got 60000ms instead
WARNING:asyncua.client.ua_client.UASocketProtocol:ServiceFault (BadIdentityTokenInvalid, diagnostics: DiagnosticInfo(SymbolicId=None, NamespaceURI=None, Locale=None, LocalizedText=None, AdditionalInfo=None, InnerStatusCode=None, InnerDiagnosticInfo=None)) from server received in response to ActivateSessionRequest
"The session cannot be used because ActivateSession has not been called."(BadSessionNotActivated)
I don't know what to do, if you can help me I appreciate it. Thank you for your time.
Beta Was this translation helpful? Give feedback.
All reactions