Closed jacksnodgrass closed 3 years ago
This seems to be a similar issue to #23 but on a different subcommand. Can you try sending the output of curl -H 'X-API-Key: API_KEY_HERE' http://SERVER_ADDRESS_HERE/api/job
if this happens everytime you print?
I get a lot of nulls... curl -H 'X-API-Key: my-super-secret-api-key' http://127.0.0.1/api/job {"job":{"averagePrintTime":null,"estimatedPrintTime":null,"filament":null,"file":{"date":1623156764,"display":"PIKVM_Case_Bottom_3h55m_0.16mm_205C_PLA_ENDER3.gcode","name":"PIKVM_Case_Bottom_3h55m_0.16mm_205C_PLA_ENDER3.gcode","origin":"local","path":"PIKVM_Case_Bottom_3h55m_0.16mm_205C_PLA_ENDER3.gcode","size":3149876},"lastPrintTime":null,"user":"admin"},"progress":{"completion":99.20904822920014,"filepos":3124962,"printTime":13554,"printTimeLeft":35,"printTimeLeftOrigin":"estimate"},"state":"Printing"}
Currently according to the 'continuous' status, I am 99.64% complete....
Can you try replacing /opt/anaconda3/lib/python3.7/site-packages/octoprint_cli/api.py
with the updated copy in 432ccfc. If this fixes your issue then I'll create a new release with the fix.
that new api.py worked... but I can't see really what you changed in there. It looks like you changed: (self.address+target, data, request.status_code),file=stderr) to (self.address+target, data, request.status_code), file=stderr)
... how did that fix this? educate me....
Describe the bug TypeError: unsupported operand type(s) for //: 'NoneType' and 'int'
This fails on BOTH fedora 34 and my raspberry pi that is running octopi
To Reproduce octoprint-cli print status
Expected behavior not fail... give good results.
Environment Information:
Additional context other commands work fine: octoprint-cli files list octoprint-cli continuous octoprint-cli version ... the octoprint-cli print status is the only command that I know fails... but I didn't run all the commands.