File upload issue via iot hub with new azure c sdk v1.14.0

Singh, Vineet Prakash (ext) 5 Reputation points
2024-09-09T06:30:37.3966667+00:00

Hi,

I was using azure c sdk version 1.11.0 on my esp32 board, with that connection to iot hub using DPS service x509 certificates works fine. Blob storage is also configured with iot hub. File upload also works fine.

Recently I have updated the azure c sdk to 1.14.0 LTS_8_2024, with that Connection to hub and sending Telemetry data works perfectly fine, but file upload has stopped working.

attaching the error log from iot hub. Can you please help here.

{"statusCode":"400","errorMessage":"Storage endpoint or blob name is invalid","deviceId":"7C:87:CE:EB:82:62","trackingId":"991D7E091C444B4091C0D555B612E911-G2:-TimeStamp:2024-09-06T10:34:48.670879080Z","fileUploadCorrelationId":"MjAyNDA5MDYxMTQ0XzdkNTkzYTNmLTQ1YWMtNDQ0OC04NzUyLTcyZWRiNzU5NjRmMV83Yzg3Y2VlYjgyNjJfZGV2aWNlQmFzZUluZm9fNDEyXzIwMjQwOTA2LTEyMzQzMy5keGRpX3ZlcjIuMA==","fileUploadStatusDescription":"","fileUploadStatusCode":"400000","maskedIpAddress":"106.76.204.XXX","isSuccess":"false","fileUploadFilename":"7c87ceeb8262_deviceBaseInfo_412_20240906-123433.dxdi"}
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,178 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 32,011 Reputation points MVP
    2024-09-10T08:09:26.1833333+00:00

    Hello @Singh, Vineet Prakash (ext),

    welcome to this moderated Azure community forum.

    The SDKs are marked as feature complete so no functional changes are made anymore. Only fixes and security patches (like library updates) are done.

    I also recommend to check the official Azure IoT SDK for C from Github.

    Please check if these blob samples work for you:

    User's image

    Compare this with your solution.


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.


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.