FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
07-04-2023 04:04 PM
Hello,
I am trying to connect ctrlX opcua server by nodejs . But i get this type of error :
Error creating session: Cannot find ANONYMOUS user token policy in end point description
13:51:08.387Z :reconnection :397 session restoration has failed! err = Cannot find ANONYMOUS user token policy in end point description ns=1;i=512 => Let's retry.
Please see attached document .How can i resolve error?
Thank you.
Solved! Go to Solution.
07-04-2023 06:44 PM
Try with a username and password.
The token types "ANONYMOUS", "CERTIFICATE" and "ISSUETOKEN" are only supported by the server for testing purposes.
Setting up a connection with one of the token types "ANONYMOUS", "CERTIFICATE" or "ISSUETOKEN" always results in the error message "Bad_IdentityTokenInvalid".
https://docs.automation.boschrexroth.com/doc/2512764470/endpoint-configuration/latest/en/
07-05-2023 08:27 AM
Hello,
thank you for reply.
I try it with username and password. but still same error . If you have client code then can you give me.
09-05-2023 10:04 AM - edited 09-05-2023 10:05 AM
Hello,
When I look at your js code and the error message, I guess you use the wrong "PolicyId"
You can see the valid PolicyIds of the UA server with the "Server Diagnostic View" of the UA-Expert.
greetings
Christian