mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 08:25:54 +02:00
[GH-ISSUE #462] [Bug]: uncaught exception in bambu_mqtt.py #287
Labels
No labels
A1
automated
automated
bug
bug
Closed due to inactivity
contrib
dependencies
dependencies
duplicate
enhancement
feedback
hold
invalid
Notes
P1S
pull-request
security
ThumbsUp
user-report
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bambuddy-maziggy-1#287
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cimdDev on GitHub (Feb 20, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/462
Originally assigned to: @maziggy on GitHub.
Bug Description
I got this uncaught exception in bambu-mqtt.py:2701
Exception has occurred: AttributeError
'NoneType' object has no attribute 'set'
File "/home/user/bambuddy/backend/app/services/bambu_mqtt.py", line 2701, in _handle_kprofile_response
self._loop.call_soon_threadsafe(self._pending_kprofile_response.set)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/bambuddy/backend/app/services/bambu_mqtt.py", line 612, in _process_message
self._handle_kprofile_response(print_data)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
File "/home/user/bambuddy/backend/app/services/bambu_mqtt.py", line 461, in _on_message
self._process_message(payload)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'set'
Expected Behavior
Receiving a kprofile response when no pending request exists should not raise an exception.
The handler should ignore the message or log a warning while continuing normal operation.
Steps to Reproduce
not sure how?
Printer Model
X1E
Bambuddy Version
0.2.1b
Printer Firmware Version
latest
Installation Method
Manual (git clone)
Operating System
Linux (Ubuntu/Debian)
Relevant Logs / Support Package
Screenshots
No response
Additional Context
Unfortunately, no support package logs were collected when this occurred.
Checklist
@cimdDev commented on GitHub (Feb 20, 2026):
Maybe it's just a none issue caused by my setup or by running in debug mode.
@maziggy commented on GitHub (Feb 20, 2026):
Fixed in branch 0.2.1b2