Azure/azure-iot-sdk-csharp

[Technical Question] HttpClientHelper error code 400030

Pabzt opened this issue · 3 comments

We ran into this exception when trying to get device twins from our IoT-Hub. If we retry the call a few minutes later it just works fine. I could not manage to find any documentation of the following error code and what to do about it:

"System.ArgumentException":
{
"Message":
{
"errorCode":400030,
"message":"400",
"trackingId":"FC7347D22C034F439FE952810E759C0D-G2:-TimeStamp:2024-02-27T17:27:48.272248437+00:00",
"timestampUtc":"2024-02-27T17:27:48.272248437+00:00",
"info":null
}, "ExceptionMessage":""
}
at Microsoft.Azure.Devices.HttpClientHelper.ExecuteAsync(HttpClient httpClient, HttpMethod httpMethod, Uri requestUri, Func3 modifyRequestMessageAsync, Func2 isMappedToException, Func3 processResponseMessageAsync, IDictionary2 errorMappingOverrides, CancellationToken cancellationToken)

We have not changed the implementation in a year or so and never had this issues before and now we had it twice in 10 days. We are using the latest version of Microsoft.Azure.Devices

We got this again today. I want to know what it is. Please explain what is doing on that causes this error.

The tracking ID accompanying the exception message indicates that this error is being returned by the service. I'd recommend reaching out to the IoT Hub service team with the tracking ID; they'd be able to help you debug this issue.

Closing this thread since this is probably a service bug and not an SDK bug.