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

IoT Hub quota exceeded is not reported properly #2455

Open
iconics-pavels opened this issue Jun 22, 2022 · 0 comments
Open

IoT Hub quota exceeded is not reported properly #2455

iconics-pavels opened this issue Jun 22, 2022 · 0 comments
Assignees
Labels
bug Something isn't working. IoTSDK Tracks all IoT SDK issues across the board

Comments

@iconics-pavels
Copy link

Context

  • OS, version, SKU and CPU architecture used: Windows 10 Desktop x64
  • Application's .NET Target Framework : net6.0, netcoreapp3.1
  • SDK version used: Microsoft.Azure.Device.Client 1.33.1

Description of the issue

We use an instance of the Microsoft.Azure.Devices.ServiceClient class to invoke the direct methods and send the messages back to the devices. When the IoT Hub quota is exceeded and we call SendAsync() method on the service client instance then we get an exception. Unfortunately the Code property of the exception is set to InvalidErrorCode. But it should be set to IotHubQuotaExceeded. It was set to proper value in the past but now we see it's not working as expected. Btw, the message of the exception is set properly. But we can't do the decision based on it. We check a value of the Code property. Could you please look into it?

@iconics-pavels iconics-pavels added the bug Something isn't working. label Jun 22, 2022
@github-actions github-actions bot added the IoTSDK Tracks all IoT SDK issues across the board label Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working. IoTSDK Tracks all IoT SDK issues across the board
Projects
None yet
Development

No branches or pull requests

2 participants