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.

[Technical Question] Additional logging/stack traces from uamqp when switching from azure-iot-hub 2.0.2 to 2.2.2

See original GitHub issue

Hopefully this makes a bit of sense…

I’m currently dealing with a fairly large Django based project which used the IoT Hub Python libraries to communicate with devices located on an Azure IoT Hub. Last week (specifically on 2020-09-11) we found that our calls to the IoT hub were not working. We eventually discovered that the specific version of the azure-iot-hub library wouldn’t work properly. If we updated the version from 2.02 to 2.2.2, things started working again. But in addition to working, any time we close the local development environment, we get several stack traces, like so:

[repeated ~10 times, with the final two stack traces looking like the following]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\program files\python37\lib\logging\__init__.py", line 1365, in debug
  File "c:\program files\python37\lib\logging\__init__.py", line 1621, in isEnabledFor
TypeError: 'NoneType' object is not callable
Exception ignored in: 'uamqp.c_uamqp.XIO.__dealloc__'
Traceback (most recent call last):
  File "c:\program files\python37\lib\logging\__init__.py", line 1365, in debug
  File "c:\program files\python37\lib\logging\__init__.py", line 1621, in isEnabledFor
TypeError: 'NoneType' object is not callable
Traceback (most recent call last):
  File "c:\program files\python37\lib\logging\__init__.py", line 1619, in isEnabledFor
KeyError: None

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\program files\python37\lib\logging\__init__.py", line 1365, in debug
  File "c:\program files\python37\lib\logging\__init__.py", line 1621, in isEnabledFor
TypeError: 'NoneType' object is not callable
Exception ignored in: 'uamqp.c_uamqp.XIO.__dealloc__'
Traceback (most recent call last):
  File "c:\program files\python37\lib\logging\__init__.py", line 1365, in debug
  File "c:\program files\python37\lib\logging\__init__.py", line 1621, in isEnabledFor
TypeError: 'NoneType' object is not callable

It may just be the structure of the application I’m working on, but it seems that something is being de-allocated several times when it has already been de-allocated. The version of uamqp is 1.2.10, which is what was installed when we updated the azure-iot-hub library. Prior to updating to 2.2.2, we didn’t see any such error messages.

Has anyone seen something like this before? If so, any ideas what we can do to resolve this?

AB#8312330

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
elhortoncommented, Sep 24, 2020

Hi @JoelBennett , thanks for all the info! This is helpful, we’re taking a look to see if it’s something that could be an issue with the recent release. Agreed that this should be documented as a best practice/guidelines-- noted. We’ll look at adding this to our Common pitfalls/FAQ page.

0reactions
az-iot-builder-01commented, Sep 24, 2020

@JoelBennett, 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

Azure IoT Hub & Devices consumption - Microsoft Q&A
Hello guys, I'm wondering is this behavior expected regarding the used resources. Currently, I'm using Free Tier Azure IoT Hub, ...
Read more >
EdgeLockTM SE05x for secure connection to Azure IoT Hub
This means that OEMs are not required to program additional credentials and can leverage the EdgeLock SE05x ease of use configuration for most ......
Read more >
Azure IoT Hub Integration - Microshare
Azure IoT Hub Integration is a streaming data integration that pushes data from the Smart Network into a client's Azure tenancy in real-time....
Read more >
azure-iot-device - PyPI
The Azure IoT Device SDK for Python enables Python developers to easily create IoT device solutions that seamlessly connect to the Azure IoT...
Read more >
Using Node.js to access Azure IoT Hub – Sander van de Velde
Everybody is welcome in the cloud. Although this is going on for quite some time, it is still a surprise for quite a...
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