Jump to content

Greg79

Dormant
  • Posts

    4
  • Joined

  • Last visited

Personal Information

  • 3D printer
    Ultimaker 3
  • Country
    FR
  • Industry
    Engineering

Greg79's Achievements

0

Reputation

  1. It just seems to not be working with node (even when the code is correct). I finally used my node server to call a python server (just for this api call) and it works. I used the python code provided earlier in this thread and this work perfectly.
  2. hi rtiksvk, Here is a curl command that works for me : curl -X POST http://YOUR_URL/api/v1/print_job --digest --user YOUR_USERNAME:YOUR_PASSWORD -H 'Accept: application/json' -H 'Content-Type: multipart/form-data' -H 'cache-control: no-cache' -H 'content-type: multipart/form-data;' --form 'file=@YOUR_FILE_PATH/YOUR_GCODE.gcode' -F 'jobname=JOBNAME'
  3. 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
×
×
  • Create New...