How can I extract the different errors and reasons for rejection in an association? #859
Replies: 1 comment 2 replies
-
General connection failures and the timeouts are sort of available via the state machine and event 17. Actual reasons for the failures during the attempt to connect with a peer aren't generally available since they get caught here. It should be possible to add a new intervention event and tie it to the connection attempt failure. I'm not sure how friendly that would be, you may end up having to parse the various exception types and/or OS specific messages.
The Reason property is only available when the Association is rejected or aborted. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Just getting started with pynetdicom and I'd like to be able to extract the actual reasons for an association to not be established.
These are the ones that I know I'd like to extract (amongst others):
I can't figure out how to get the low-level error strings from the network layer for the first 2 errors. I see them in stderr when using ae.associate() but I can't extract them in code.
And for those cases where the connection is established, how do I extract the Reason I see the SCP sending?
Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions