whitespace in message custom_properties raises MQTT ValueError
See original GitHub issueUnexpected error in <azure.iot.device.common.pipeline.pipeline_stages_mqtt.MQTTTransportStage object at 0x7f51ebf0b710>._run_op() call
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/azure/iot/device/common/pipeline/pipeline_stages_base.py", line 102, in run_op
self._run_op(op)
File "/usr/local/lib/python3.7/site-packages/azure/iot/device/common/pipeline/pipeline_thread.py", line 198, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/azure/iot/device/common/pipeline/pipeline_stages_mqtt.py", line 159, in _run_op
self.transport.publish(topic=op.topic, payload=op.payload, callback=on_published)
File "/usr/local/lib/python3.7/site-packages/azure/iot/device/common/mqtt_transport.py", line 533, in publish
(rc, mid) = self._mqtt_client.publish(topic=topic, payload=payload, qos=qos)
File "/usr/local/lib/python3.7/site-packages/paho/mqtt/client.py", line 1245, in publish
raise ValueError('Publish topic cannot contain wildcards.')
ValueError: Publish topic cannot contain wildcards.
MQTTPublishOperation: completing with error Publish topic cannot contain wildcards.
SendOutputEventOperation: completing with error Publish topic cannot contain wildcards.
Callback completed with error Publish topic cannot contain wildcards.
['ValueError: Publish topic cannot contain wildcards.\n']
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
white-space - CSS: Cascading Style Sheets - MDN Web Docs
The white-space CSS property sets how white space inside an element is handled.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This issue has been fixed as of azure-iot-device version 2.1.1, now available on PyPI
Faced the same issue with azure-iot-device 2.0.1. Fixed it with 2.1.1. Thank you for the contribution.