Skip to content

Token ID failure #1886

@falerodney-code

Description

@falerodney-code

After around 1 hour of a good connection, the following log is displayed:
Exception raised while parsing message from server
Traceback (most recent call last):
File "C:\Users\mi3654\AppData\Local\Programs\Python\Python312\Lib\site-packages\asyncua\client\ua_client.py", line 102, in _process_received_data
msg = self._connection.receive_from_header_and_body(header, buf)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mi3654\AppData\Local\Programs\Python\Python312\Lib\site-packages\asyncua\common\connection.py", line 445, in receive_from_header_and_body
self._check_sym_header(security_header)
File "C:\Users\mi3654\AppData\Local\Programs\Python\Python312\Lib\site-packages\asyncua\common\connection.py", line 386, in _check_sym_header
raise ua.UaError(
asyncua.ua.uaerrors._base.UaError: Security token id 1 has timed out (2025-10-15 14:16:47.380644+00:00 < 2025-10-15 16:46:53.853417+00:00)
Erro ao ler ns=2;s=/Plc/DB9023.DBD256: Connection is closed
Erro ao ler ns=2;s=/Plc/DB9023.DBD504: Connection is closed

The asyncua version is 1.1.8 and phyton version is 3.13

What kind of change can be implemented in client code to fix this?

Regards,

Rodney

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions