imrahil / OctoPrint-PrintHistory

Plugin for OctoPrint - saves filename, print time and filament usage for each print
GNU Affero General Public License v3.0
64 stars 64 forks source link

Error while calling plugin printhistory - Could not convert string to float #55

Open furicks opened 7 years ago

furicks commented 7 years ago

Could be a bug or something unusual in my setup.

ValueError: could not convert string to float: 2017-06-13 00:50:57,165 - octoprint.plugin - ERROR - Error while calling plugin printhistory Traceback (most recent call last): File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.4-py2.7.egg/octoprint/plugin/__init__.py", line 229, in call_plugin result = getattr(plugin, method)(*args, **kwargs) File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_printhistory/__init__.py", line 146, in on_event return eventHandler.eventHandler(self, event, payload) File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_printhistory/eventHandler.py", line 38, in eventHandler fileName = payload["name"] KeyError: 'name'

I'm running a Rep 2X with Sailfish firmware. Octo Pi on the Raspberry Pi 3b. It doesn't happen all the time only sometimes and it causes the connection with the printer to close at the end of the print.

Running the latest GPX plugin for Octo Pi GPX (2.5.5)

The file being printed was named 11x_Qidi_paladinscrystal.gcode