Exception in callback to enclosure plugin #432

Closed
opened 2021-08-03 22:45:51 +01:00 by NilsRo · 2 comments
NilsRo commented 2021-08-03 22:45:51 +01:00 (Migrated from github.com)

Describe the bug

Exception in callback to enclosure plugin.

To Reproduce
Happens on every print at the end of the print with newest OctoPrint.

Expected behavior
Exception in logfile.

Additional context
Finishing" to "Operational"
2021-08-03 18:11:16,669 - octoprint.plugins.display_panel - WARNING - An exception of type TypeError occurred on log_error. Arguments: ("argument of type 'NoneType' is not iterable",)
2021-08-03 18:11:16,677 - octoprint.plugins.display_panel - WARNING - An exception of type TypeError occurred on log_error. Arguments: ("argument of type 'NoneType' is not iterable",)
2021-08-03 18:11:19,018 - octoprint.plugins.display_panel - WARNING - An exception of type TypeError occurred on log_error. Arguments: ("argument of type 'NoneType' is not iterable",)
2021-08-03 18:11:19,718 - octoprint.plugins.DisplayLayerProgress - INFO - Printing stopped. Detailed progress stopped.
2021-08-03 18:11:19,746 - octoprint.plugins.display_panel - WARNING - An exception of type TypeError occurred on log_error. Arguments: ("argument of type 'NoneType' is not iterable",)
2021-08-03 18:11:19,755 - octoprint.plugin - ERROR - Error while calling plugin enclosure
Traceback (most recent call last):
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/plugin/init.py", line 271, in call_plugin
result = getattr(plugin, method)(*args, **kwargs)
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/util/init.py", line 1941, in wrapper
return f(*args, **kwargs)
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_enclosure/init.py", line 1639, in on_event
file_name = os.path.basename(payload["file"])
KeyError: 'file'
2021-08-03 18:11:19,757 - octoprint.plugins.filamentsensorsimplified - INFO - PrintDone: Disabling filament sensor.
2021-08-03 18:11:19,810 - octoprint.plugins.display_panel - WARNING - An exception of type TypeError occurred on log_error. Arguments: ("argument of type 'NoneType' is not iterable",)
2021-08-03 18:11:19,853 - octoprint.plugins.tracking - INFO - Sent tracking event print_done, payload: {'origin': 'local', 'file': 'b95de8a5a04f172df0ce7fcd82083d39f0374f7a', 'elapsed': 16095}
2021-08-03 18:11:21,974 - octoprint.plugins.SlicerEstimator - INFO - Detected Cura
2021-08-03 18:11:22,974 - octoprint.filemanager.analysis - INFO - Found 15234.0s from slicer for file AI3MSPRO_Pflanzkubel(2).gcode
2021-08-03 18:11:22,975 - octoprint.filemanager.analysis - INFO - Analysis of entry local:AI3MSPRO_Pflanzkubel(2).gcode finished, needed 6.41s
2021-08-03 18:11:23,025 - octoprint.plugins.DisplayLayerProgress - INFO - Store layer count in MetaFile
2021-08-03 18:11:23,067 - octoprint.plugins.DisplayLayerProgress - INFO - Read total height from MetaFile
2021-08-03 18:20:03,792 - octoprint.server.heartbeat - INFO - Server heartbeat <3
202

**Describe the bug** Exception in callback to enclosure plugin. **To Reproduce** Happens on every print at the end of the print with newest OctoPrint. **Expected behavior** Exception in logfile. **Additional context** Finishing" to "Operational" 2021-08-03 18:11:16,669 - octoprint.plugins.display_panel - WARNING - An exception of type TypeError occurred on log_error. Arguments: ("argument of type 'NoneType' is not iterable",) 2021-08-03 18:11:16,677 - octoprint.plugins.display_panel - WARNING - An exception of type TypeError occurred on log_error. Arguments: ("argument of type 'NoneType' is not iterable",) 2021-08-03 18:11:19,018 - octoprint.plugins.display_panel - WARNING - An exception of type TypeError occurred on log_error. Arguments: ("argument of type 'NoneType' is not iterable",) 2021-08-03 18:11:19,718 - octoprint.plugins.DisplayLayerProgress - INFO - Printing stopped. Detailed progress stopped. 2021-08-03 18:11:19,746 - octoprint.plugins.display_panel - WARNING - An exception of type TypeError occurred on log_error. Arguments: ("argument of type 'NoneType' is not iterable",) 2021-08-03 18:11:19,755 - octoprint.plugin - ERROR - Error while calling plugin enclosure Traceback (most recent call last): File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/plugin/__init__.py", line 271, in call_plugin result = getattr(plugin, method)(*args, **kwargs) File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/util/__init__.py", line 1941, in wrapper return f(*args, **kwargs) File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_enclosure/__init__.py", line 1639, in on_event file_name = os.path.basename(payload["file"]) KeyError: 'file' 2021-08-03 18:11:19,757 - octoprint.plugins.filamentsensorsimplified - INFO - PrintDone: Disabling filament sensor. 2021-08-03 18:11:19,810 - octoprint.plugins.display_panel - WARNING - An exception of type TypeError occurred on log_error. Arguments: ("argument of type 'NoneType' is not iterable",) 2021-08-03 18:11:19,853 - octoprint.plugins.tracking - INFO - Sent tracking event print_done, payload: {'origin': 'local', 'file': 'b95de8a5a04f172df0ce7fcd82083d39f0374f7a', 'elapsed': 16095} 2021-08-03 18:11:21,974 - octoprint.plugins.SlicerEstimator - INFO - Detected Cura 2021-08-03 18:11:22,974 - octoprint.filemanager.analysis - INFO - Found 15234.0s from slicer for file AI3MSPRO_Pflanzkubel(2).gcode 2021-08-03 18:11:22,975 - octoprint.filemanager.analysis - INFO - Analysis of entry local:AI3MSPRO_Pflanzkubel(2).gcode finished, needed 6.41s 2021-08-03 18:11:23,025 - octoprint.plugins.DisplayLayerProgress - INFO - Store layer count in MetaFile 2021-08-03 18:11:23,067 - octoprint.plugins.DisplayLayerProgress - INFO - Read total height from MetaFile 2021-08-03 18:20:03,792 - octoprint.server.heartbeat - INFO - Server heartbeat <3 202
jneilliii commented 2021-10-13 05:52:14 +01:00 (Migrated from github.com)

@NilsRo I think I fixed this in the above commit. If you could test and verify that would be great. You can install by using this URL in Plugin Manager > Get More > ...from URL and click Install.

https://github.com/jneilliii/OctoPrint-Enclosure/archive/refs/heads/patch-1.zip
@NilsRo I think I fixed this in the above commit. If you could test and verify that would be great. You can install by using this URL in Plugin Manager > Get More > ...from URL and click Install. ``` https://github.com/jneilliii/OctoPrint-Enclosure/archive/refs/heads/patch-1.zip ```
NilsRo commented 2021-10-22 20:13:16 +01:00 (Migrated from github.com)

Seems solved, it does not happen anymore in my installation.

Seems solved, it does not happen anymore in my installation.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Gandalf/OctoPrint-Enclosure#432