Azure Service Bus - Python Error (could not convert string to float) while receiving message

If You try to receive message from Azure Service Bus message queue with Python and You encountered an error that says:

ValueError: could not convert string to float: 'max-age=31536000'

then You need to update azure-servicebus Python module to version 0.20.2 or greater.

pip install azure-servicebus==0.20.2

There is a breaking change in the ServiceBus Rest API that unfortunately forces people to move to 0.20.2. The 0.20.1 version is no longer working. Sorry about that :( - Laurent Mazuel, Microsoft

comments powered by Disqus