You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cloned repo: ( If you are using a cloned sdk repository, in a command prompt: git describe )
Description of the issue
I get Sentry errors for 'NoneType' object has no attribute 'on_mqtt_connected_handler'. The traceback doesn't include my code just the code in the package. I'm not creating a thread in my code.
File "threading.py", line 892, in run
self._target(*self._args, **self._kwargs)
File "paho/mqtt/client.py", line 3591, in _thread_main
self.loop_forever(retry_first_connection=True)
File "paho/mqtt/client.py", line 1756, in loop_forever
rc = self._loop(timeout)
File "paho/mqtt/client.py", line 1164, in _loop
rc = self.loop_read()
File "paho/mqtt/client.py", line 1556, in loop_read
rc = self._packet_read()
File "paho/mqtt/client.py", line 2439, in _packet_read
rc = self._packet_handle()
File "paho/mqtt/client.py", line 3039, in _packet_handle
return self._handle_connack()
File "paho/mqtt/client.py", line 3138, in _handle_connack
on_connect(
File "/opt/mixpilot/venv/lib/python3.9/site-packages/azure/iot/device/common/mqtt_transport.py", line 193, in on_connect
elif this.on_mqtt_connected_handler:
AttributeError: 'NoneType' object has no attribute 'on_mqtt_connected_handler'
Context
Description of the issue
I get Sentry errors for
'NoneType' object has no attribute 'on_mqtt_connected_handler'
. The traceback doesn't include my code just the code in the package. I'm not creating a thread in my code.Code sample exhibiting the issue
The traceback doesn't include my code.
azure-iot-sdk-python/azure-iot-device/azure/iot/device/common/mqtt_transport.py
Line 193 in 2cbbed5
The change to use
this
was added in this commit. 2b5ffefConsole log of the issue
In the Sentry breadcrumbs I see
The text was updated successfully, but these errors were encountered: