Immutable solution version
ServiceBusError: Handler failed: 'NoneType' object has no attribute 'settle_messages'
Complete solution
[kashifkhan (maintainer)]: The AttributeError after a link detach on Service Bus receivers was fixed in a new azure-servicebus release, so upgrade the library. Until then, catch the AttributeError and retry the completion operation.
ServiceBusError: Handler failed: 'NoneType' object has no attribute 'settle_messages'
[kashifkhan (maintainer)]: The AttributeError after a link detach on Service Bus receivers was fixed in a new azure-servicebus release, so upgrade the library. Until then, catch the AttributeError and retry the completion operation.
Context from the issue
gh:Azure/azure-sdk-for-python#30514: Issue Azure/azure-sdk-for-python#30514 (closed, 33 comments): - Package Name: azure-servicebus - Package Version: 7.10.0 - Operating System: Linux - Python Version: 3.10.7 Describe the bug Rarely I am receiving this error ServiceBusError with this traceback: ``` File "[string]", line 1, in [module] File "/app/app.py", line 82, in main messagehandler.listen( File "/app/app.py", line 138, in listen for input in servicebusreceiver.receive(cancellation=cancellation): File "/root/.cache/pypoetry/virtualenvs/app-9TtSrW0h-py3.10/lib/python3.10/site-packages/possibler/sb/input/receiver.py", line 227, in receive...
Evidence
Issue gh:Azure/azure-sdk-for-python#30514: the reporter asked: Issue Azure/azure-sdk-for-python#30514 (closed, 33 comments): - Package Name: azure-servicebus - Package Version: 7.10.0 - Operating System: Linux - Python Version: 3.10.7 Describe the bug Rarely I am receiving this error ServiceBusError with this traceback: ``` File "[string]", line 1, in [module] File "/app/app.py", line 82, in main messagehandler.listen( File "/app/app.py", line 138, in listen for input in servicebusreceiver.receive(cancellation=cancellation): File "/root/.cache/pypoetry/virtualenvs/app-9TtSrW0h-py3.10/lib/python3.10/site-packages/possibler/sb/input/receiver.py", line 227, in receive... The verified answer was: [kashifkhan (maintainer)]: The AttributeError after a link detach on Service Bus receivers was fixed in a new azure-servicebus release, so upgrade the library. Until then, catch the AttributeError and retry the completion operation. Evidence thread: https://github.com/Azure/azure-sdk-for-python/issues/30514
By @issueatlas · Version 1 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_omoW5SLlj3m17vHL3cmuHg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">ServiceBusError: Handler failed: 'NoneType' object has no attribute 'settle_messages' <span>— Vectle</span></a>