com.microsoft.azure.sdk.iot.device.transport.TransportException: Could not send request to HSM

Daniel Baylon 6 Reputation points
2022-06-28T02:46:28.69+00:00

Runtime: Java
SDK version : com.microsoft.azure.sdk.iot:iot-device-client:2.0.3

When upgrading the version, we encountered the below exception:

Caused by: java.io.IOException: com.microsoft.azure.sdk.iot.device.transport.TransportException: Could not send request to HSM
at com.microsoft.azure.sdk.iot.device.transport.https.HttpsTransportManager.send(HttpsTransportManager.java:141)
at com.microsoft.azure.sdk.iot.device.transport.https.HttpsTransportManager.invokeMethod(HttpsTransportManager.java:226)
at com.microsoft.azure.sdk.iot.device.transport.https.HttpsTransportManager.invokeMethod(HttpsTransportManager.java:188)
at com.microsoft.azure.sdk.iot.device.ModuleClient.invokeMethod(ModuleClient.java:480)
... 3 more
Caused by: com.microsoft.azure.sdk.iot.device.transport.TransportException: Could not send request to HSM
at com.microsoft.azure.sdk.iot.device.hsm.HttpsHsmClient.sign(HttpsHsmClient.java:88)
at com.microsoft.azure.sdk.iot.device.hsm.HttpHsmSignatureProvider.sign(HttpHsmSignatureProvider.java:80)
at com.microsoft.azure.sdk.iot.device.hsm.IotHubSasTokenHsmAuthenticationProvider.createNewSasToken(IotHubSasTokenHsmAuthenticationProvider.java:170)
at com.microsoft.azure.sdk.iot.device.hsm.IotHubSasTokenHsmAuthenticationProvider.refreshSasToken(IotHubSasTokenHsmAuthenticationProvider.java:136)
at com.microsoft.azure.sdk.iot.device.auth.IotHubSasTokenWithRefreshAuthenticationProvider.getSasToken(IotHubSasTokenWithRefreshAuthenticationProvider.java:101)
at com.microsoft.azure.sdk.iot.device.transport.https.HttpsIotHubConnection.getSasToken(HttpsIotHubConnection.java:425)
at com.microsoft.azure.sdk.iot.device.transport.https.HttpsIotHubConnection.sendRequest(HttpsIotHubConnection.java:398)
at com.microsoft.azure.sdk.iot.device.transport.https.HttpsIotHubConnection.sendHttpsMessage(HttpsIotHubConnection.java:201)
at com.microsoft.azure.sdk.iot.device.transport.https.HttpsTransportManager.send(HttpsTransportManager.java:136)

Are there any configuration we need to define or we may missed out?

Thanks!

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
412 questions
Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
591 questions
Azure IoT SDK
Azure IoT SDK
An Azure software development kit that facilitates building applications that connect to Azure IoT services.
227 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.