Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
out of memory error when trying to upload blob to iothub #80
Description of the issue:
When running the device sample (device/samples/iothub_client_sample_class.py) the upload fails with the error below, reporting a curl out of memory failure
Code sample exhibiting the issue:
iothub_client_sample_class.py from sdk
Console log of the issue:
python3 iothub_client_sample_class.py -p mqtt -c "HostName=xx;DeviceId=xx"
IoT Hub Client for Python
Error: Time:Tue Oct 17 09:48:49 2017 File:/Users/andrewwylie/Workspace/repos/azure-iot-sdk-python/c/c-utility/adapters/httpapi_curl.c Func:HTTPAPI_ExecuteRequest Line:554 (result = HTTPAPI_OPEN_REQUEST_FAILED)
I can confirm I'm running into the exact same issue in my C code:
Error: Time:Thu Nov 16 23:24:21 2017 File:/Users/dllau/azure-iot-sdk-c/c-utility/adapters/httpapi_curl.c Func:HTTPAPI_ExecuteRequest Line:558 (result = HTTPAPI_OPEN_REQUEST_FAILED)
In the meantime, you can use the following sample python/node code to upload files to IoT Hub. It uses the REST APIs directly. https://github.com/jonbgallant/azure-iot-rest/blob/master/data-plane/devices/files/file-upload.py
I am also getting same error on Raspberry Pi Zero / Python2.7:
+1 for this issue...
referenced this issue
Dec 1, 2017
get_device also doesn't work:
Produces this error:
What about Mac OS X. On Dec 3, 2017, at 10:04 PM, Jon Gallant <email@example.com> wrote: This is a valid workaround that will remove openssl in favor of gnutls. cd build_all/linux ./setup.sh sudo apt remove libcurl4-openssl-dev sudo apt install libcurl4-gnutls-dev ./build.sh — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#80 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AKL1ohCMW8M7h8aDMdjVPmrtj12imTudks5s82FTgaJpZM4P7y_W>.
@zolvarga Hi, I have the same issue on Mac OS. Is there any update about it?
Invoking device to reboot...
Error: Time:Mon Feb 26 09:42:33 2018 File:/Users/X/azure-iot-sdk-python/c/c-utility/adapters/httpapi_curl.c Func:HTTPAPI_ExecuteRequest Line:589 (result = HTTPAPI_OPEN_REQUEST_FAILED)
Thanks a lot,
I am executing the following code on my RPi Model 3. This code executes perfect on my Surface Pro so I know it will work:
CONNECTION_STRING = ""
source = '/media/pi/Navistar/images' # directory where raw images are stored
def blob_upload_conf_callback(result, user_context):
if name == 'main':
When I run it on my RPI Model 3. Running Raspian (stretch) version 9 and python 2.7.13 with I get the following errors:
Time:Mon Mar 5 01:13:27 2018