Skip to content
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

Cannot resend a Message on ServiceClient - throws ObjectDisposedException #1638

Closed
abhipsaMisra opened this issue Nov 2, 2020 · 2 comments
Closed
Assignees
Labels
bug Something isn't working. fix-checked-in Fix checked into main or preview, but not yet released. IoTSDK Tracks all IoT SDK issues across the board

Comments

@abhipsaMisra
Copy link
Member

There is a bug in Microsoft.Azure.Devices where we cannot resend the same message using ServiceClient.SendAsync().

This is because:

  • the AMQP message being created is a property of the IoT Hub Message class.
  • The AMQP message needs to be disposed after each send attempt made by the AMQP library.

As a result, repeated sends of the same IoT Hub message results in the SDK attempting to send a disposed AMQP message, resulting in an ObjectDisposedException.

@abhipsaMisra abhipsaMisra added the bug Something isn't working. label Nov 2, 2020
@github-actions github-actions bot added the IoTSDK Tracks all IoT SDK issues across the board label Nov 2, 2020
@abhipsaMisra abhipsaMisra self-assigned this Nov 2, 2020
@abhipsaMisra abhipsaMisra added the fix-checked-in Fix checked into main or preview, but not yet released. label Nov 2, 2020
@abhipsaMisra
Copy link
Member Author

@az-iot-builder-01
Copy link
Contributor

@abhipsaMisra, thank you for your contribution to our open-sourced project! Please help us improve by filling out this 2-minute customer satisfaction survey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working. fix-checked-in Fix checked into main or preview, but not yet released. IoTSDK Tracks all IoT SDK issues across the board
Projects
None yet
Development

No branches or pull requests

2 participants