Closed manjukiranhc7 closed 6 months ago
The root cause is related to: https://github.com/eclipse-velocitas/vehicle-app-python-sdk/issues/118 i would say
@manjukiranhc7 We decided to go with version 1.x of the Paho client for now, since we now this is working and we never had issues with it. I added a constraint in the SDK and update the template to use the new SDK with #226.
@MP91 Thank you
Severity
Medium
What release version, tag or commit-hash did you use?
v0.1.1
Current Behavior
After recent update of paho-mqtt to 2.0.0, my integration tests are failing when it is trying to connect client to broker. This results in failure of my integration tests with below error.
In older 1x version of paho-mqtt I am not seeing this issue.
Steps to Reproduce
Expected Behavior
Tests should work irrespective paho-mqtt versions.
Possible Solution
Need to add version to user callbacks: add mqtt.CallbackAPIVersion.VERSION1 as first argument to [Client()]
Tests work fine after enhancing mqtt_util.py in SDK by adding versions explicitly to callbacks.
This issue was expected and solution was provided by paho-mqtt please refer below link. https://eclipse.dev/paho/files/paho.mqtt.python/html/migrations.html
Additional Information
No response
Code of Conduct