Hi everybody ! Any update on this one? i'm facing the same result on nodejs.
Moreover :
I tried with multiple tools :
- Insomnia : works as expected -> It's possible to start a print job
- Curl command line : works as expected -> It's possible to start a print job
- Post Man : Cannot make it work ( error code : 400 Bad request : "message": "No file received")
- Python3 : same as PostMan ( the file seems to be received by the printer as i see message in printer's log : (but seems empty?)
Feb 12 10:58:10 ultimakersystem-ccbdd30046a1 python3[450]: 2019-02-12 10:58:10,096 INFO printJob Saving received file UM3_MusicNoteKeyChainXL.gcode",
"Feb 12 10:58:10 ultimakersystem-ccbdd30046a1 python3[450]: 2019-02-12 10:58:10,118 INFO printJob File saved as /tmp/UM3_MusicNoteKeyChainXL.gcode",
"Feb 12 10:58:10 ultimakersystem-ccbdd30046a1 python3[418]: 2019-02-12 10:58:10,125 INFO controller Request to start procedure: PRINT",
"Feb 12 10:58:10 ultimakersystem-ccbdd30046a1 python3[418]: 2019-02-12 10:58:10,130 ERROR controller Exception in procedure start",
"Feb 12 10:58:10 ultimakersystem-ccbdd30046a1 python3[418]: Traceback (most recent call last):",
"Feb 12 10:58:10 ultimakersystem-ccbdd30046a1 python3[418]: File \"/usr/share/griffin/griffin/printer/controller.py\", line 455, in startProcedure",
"Feb 12 10:58:10 ultimakersystem-ccbdd30046a1 python3[418]: if not procedure.setup(parameters):",
"Feb 12 10:58:10 ultimakersystem-ccbdd30046a1 python3[418]: File \"/usr/share/griffin/griffin/printer/procedures/print/printProcedure.py\", line 102, in setup",
"Feb 12 10:58:10 ultimakersystem-ccbdd30046a1 python3[418]: self._parse_header_step.getFileHandler().cleanup()",
"Feb 12 10:58:10 ultimakersystem-ccbdd30046a1 python3[418]: AttributeError: 'NoneType' object has no attribute 'cleanup'",
"Feb 12 10:58:10 ultimakersystem-ccbdd30046a1 python3[450]: 2019-02-12 10:58:10,137 WARNING printJob Print of UM3_MusicNoteKeyChainXL could not be started"
All others API ( led, blink, message... ) are working well with digest auth but this one ( maybe because of the multipart/form-data aspect) is not working consistently for me.
Can anyone provide support on handling Print_job api from a webapp (nodejs / python? ) / or a working code?
thanks