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

file upload failing in v1.14.0 using x509 authentication #2645

Open
kaikeraut opened this issue Sep 10, 2024 · 0 comments
Open

file upload failing in v1.14.0 using x509 authentication #2645

kaikeraut opened this issue Sep 10, 2024 · 0 comments
Labels

Comments

@kaikeraut
Copy link

I have updated azure sdk from 1.11.0 to 1.14.0 and now file uploads are failing, telemetry data is successfully getting sent.

I am using DPS service, x509 certificated-based authentication for iot hub connection.

I am still using IoTHubDeviceClient_LL_UploadToBlob Api to upload data to blob as stated in below sample link which is working fine with older sdk too.
https://github.com/Azure/azure-iot-sdk-c/blob/main/iothub_client/samples/iothub_client_sample_upload_to_blob/iothub_client_sample_upload_to_blob.c

Here is Firmware error logs:

Error: Time:<NO TIME IMPL> File:./azure-iot-sdk-c/iothub_client/src/iothub_client_ll_uploadtoblob.c Func:send_http_request Line:161 HTTP failed response code was 400
Error: Time:<NO TIME IMPL> File:./azure-iot-sdk-c/iothub_client/src/iothub_client_ll_uploadtoblob.c Func:IoTHubClient_LL_UploadToBlob_NotifyIoTHubOfUploadCompletion Line:669 unable to execute send_http_request
Error: Time:<NO TIME IMPL> File:./azure-iot-sdk-c/iothub_client/src/iothub_client_ll_uploadtoblob.c Func:IoTHubClient_LL_UploadToBlob_NotifyCompletion Line:1098 IoTHubClient_LL_UploadToBlob_NotifyIoTHubOfUploadCompletion failed
Error: Time:<NO TIME IMPL> File:./azure-iot-sdk-c/iothub_client/src/iothub_client_core_ll.c Func:IoTHubClientCore_LL_UploadToBlob Line:2766 Failed completing upload to blob.

Iot Hub Error Log:
{"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"}

I am using esp32 board with esp-idf v.5.2.
I tried same certificates in windows Linux subsystem there also file upload fails

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant