Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeout error #1539

Open
HajarMed opened this issue Apr 17, 2024 · 0 comments
Open

Timeout error #1539

HajarMed opened this issue Apr 17, 2024 · 0 comments

Comments

@HajarMed
Copy link

i try to connect to the opcexpert server using the following code:

from opcua import Client

server_URL = "opc.tcp://localhost:57888/OpcExpert"
path_client_cert = "C:/Program Files/OPC Expert/Expert Resources/CertificateStores/UA Applications/certs/certificate.der"
path_private_key="C:/Program Files/OPC Expert/Expert Resources/CertificateStores/UA Applications/certs/rsa_private.pem"
path_server_cert="C:/Program Files/OPC Expert/Expert Resources/CertificateStores/UA Applications/certs/server_cert.der"
client = Client(server_URL)
client.set_security_string("Basic256Sha256,SignAndEncrypt," + path_client_cert +"," + path_private_key + "," + path_server_cert + "")
client.application_uri = ""
client.secure_channel_timeout = 10000
client.session_timeout = 10000
client.connect()

i get this error:
Exception has occurred: TimeoutError
exception: no description
File "C:\Program Files\OPC Expert\Expert Resources\CertificateStores\UA Applications\certs\opcexpert_security", line 16, in
client.connect()
TimeoutError:

Any help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant