question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to connect and receive_twin_desired_properties_patch

See original GitHub issue

Hi, I’m using a simple code based on this functionality:

device_client = IoTHubDeviceClient.create_from_connection_string(CONNECTION_STRING)
await device_client.connect()
desired = await device_client.receive_twin_desired_properties_patch()

While yesterday it worked perfectly, today im suddenly getting this (common) error:

azure.iot.device.common.transport_exceptions.ConnectionDroppedError: None
ERROR: MQTTTransportStage: _on_mqtt_disconnect called: Out of memory.
ERROR: Exception caught in background thread.  Unable to handle.
azure.iot.device.common.transport_exceptions.ProtocolClientError: Out of memory.

Any ideas?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
BertKleeweincommented, Jan 23, 2020

@lokijota, to set a default level (DEBUG, INFO, WARNING, or ERROR):

import logging
logging.basicConfig(level=logging.INFO)

or, for an individual component:

import logging
logging.getLogger("azure.iot.device").setLevel(level=logging.DEBUG)
0reactions
az-iot-builder-01commented, Apr 2, 2020

@BertKleewein, @livneros, @lokijota, thank you for your contribution to our open-sourced project! Please help us improve by filling out this 2-minute customer satisfaction survey

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tutorial - Synchronize device state from Azure IoT Hub
This tutorial shows you how to use desired and reported properties to synchronize state information. Diagram of device twins on the device and ......
Read more >
Connection drops / unable to read module twin desired ...
I created a module on IoT Edge and I'm running a main.py that reads module twin updates and writes them to the console....
Read more >
Azure IoTHub Device does not receive every Twin changes
I'm trying to receive all twin desired changes in a function. I created 100 device client for 100 Iot Hub devices. I added...
Read more >
adafruit_azureiot — Adafruit AzureIoT Library 1.0 documentation
Called when the device twin desired properties are updated. Parameters. desired_property_name (str) – The name of the desired property that was updated.
Read more >
IoT Hub Device Twin and MQTT - baeke.info
When you connect to IoT Hub with MQTT directly, you need to connect with a ClientId, username and password. Those three values need...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found