You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
📤 Message published
📥 Message received
📤 Message published
📥 Message received
📤 Message published
📥 Message received
>>>> Server crash-restart
nats: encountered error
NoneType: None
🔴 Disconnected!
🟢 Reconnected!
📤 Message published
📥 Message received
📤 Message published
📥 Message received
Actual behavior (with DISCONNECT_CALLBACK_EXCEPTION=True):
📤 Message published
📥 Message received
📤 Message published
📥 Message received
📤 Message published
📥 Message received
>>>> Server crash-restart
nats: encountered error
NoneType: None
🔴 Disconnected!
📤 Message published
📤 Message published
📤 Message published
📤 Message published
Notice no errors, no attempts to reconnect, and no message delivered forever after
The text was updated successfully, but these errors were encountered:
If the callback passed to
disconnected_cb
raises an exception, then the NATS client will never reconnect to the cluster.While this behavior could be classified as "user error" (that callback should not throw!), it would be nice to handle this gracefully:
Attaching a simple script that reproduces the behavior: callback_exception.py.txt
See instructions at the top of the file.
Expected behavior:
Actual behavior (with
DISCONNECT_CALLBACK_EXCEPTION=True
):Notice no errors, no attempts to reconnect, and no message delivered forever after
The text was updated successfully, but these errors were encountered: