Replies: 2 comments
-
Even if I'm not @oroulet I may want to help. :^) |
Beta Was this translation helpful? Give feedback.
-
Renew session is done in the background you cannot catch errors there, but anyway you may get background error due many different uncontrollable things. So the only solution is that I your code you read a node value every 10s or so and disconnect/reconnect if any issues |
Beta Was this translation helpful? Give feedback.
-
Hello!
Dear @oroulet could you please help to understand how it possible to catch this exception?
opcua-asyncio/asyncua/client/client.py
Lines 388 to 390 in 79072d7
I know only method like this
self.client._renew_channel_task.add_done_callback(self.future_callback_error_logger)
where in callback call
.result
on Future and handle exceptions, but this is access to protected attribute and feels not right.First of all issue happens like this
Beta Was this translation helpful? Give feedback.
All reactions