-
Notifications
You must be signed in to change notification settings - Fork 58
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
AMQP Link Detach #76
Comments
It seems to happen on a weekly basis. It could mean that Azure has some sort of timeout for 7 days and that we should gracefully reconnect when it occurs. |
Some information from the Python library.
|
We believe the following code is the cause - once a link is detached, there's no retry to get a session and link going again. https://github.com/amenzhinsky/iothub/blob/master/iotservice/client.go#L171-L189 Note how, upon an error when putting a token, we just return and won't try any more. Likely, we become unauthorized and kicked from the server and the link becomes detached. |
I have an issue where I'm unable to publish events. Unfortunately I can't identify any more related circumstances than that. It has occurred some times, but in most cases it works as expected.
In essence the code works as follows:
The error is the following:
The Java SDK seems to have this comment regarding the error:
Same with the JS one: https://github.com/Azure/amqp-common-js/blob/master/lib/errors.ts#L171.
So to me it seems as if this error may occur from time to time. For me, it has always been solved with a restart, so I assume one way to handle it is to simply reconnect the client.
The text was updated successfully, but these errors were encountered: