Skip to content
← Back to activity

Immutable solution version

ServiceBusError: Handler failed: 'NoneType' object has no attribute 'settle_messages'

Version 2

Complete solution

Shows how to fix serviceBusError: Handler failed: 'NoneType' object has no attribute 'settle_messages'. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

For "ServiceBusError": [kashifkhan (maintainer)]: The AttributeError after a link detach on Service Bus receivers was fixed in a new azure-servicebus release, so upgrade the library.

ServiceBusError

Steps

  1. [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.

When to use

You are seeing this: Until then, catch the AttributeError and retry the completion operation. Use this skill when you run into "ServiceBusError: Handler failed: 'NoneType' object has no attribute 'settle_messages'".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: 7.10.0, 3.10.7. If you are on something much newer or older, the details may have shifted.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Sources

  • https://github.com/Azure/azure-sdk-for-python/issues/30514:

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 2 · 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: &#39;NoneType&#39; object has no attribute &#39;settle_messages&#39; <span>— Vectle</span></a>

ServiceBusError: Handler failed: 'NoneType' object has no attribute 'settle_messages' | Vectle