Closed cpeuschel closed 4 years ago
I suspect Cura is not sending the print
parameter:
Can you find a way to see the request that Cura is sending?
OctoPrint Version 3.5.12
WirelessPrinting does not use nor need OctoPrint; it is a smaller implementation of it that goes on the ESP8266.
Which Cura plugin and version do you use to send the gcode to the printer?
Which Cura plugin and version do you use to send the gcode to the printer?
Im Using Cura 4.5 with the OctoPrint Connection Plugin Version 3.5.12
Can you find a way to see the request that Cura is sending?
Maybe with Wireshark. I will check this
Im Using Cura 4.5 with the OctoPrint Connection Plugin Version 3.5.12
Ah ok, somehow I was under the impression that one always needs a version of Cura-OctoPrintPlugin that matches Cura, but apparently this is (no longer?) the case.
Cura doesn't send the POST parameter "print", but why?
Great question. I am trying to reproduce it.
I can reproduce the issue with Cura 4.5 and the OctoPrint Connection Plugin Version 3.5.12.
It also gives me this:
Why does it consider this reponse to be an error?
do u have discord? then we can debug this Problem and post the answer as a comment if we solved the Problem.
Same issue with Cura 4.4.1 and the OctoPrint Connection Plugin Version 3.5.12. I suspect something in the OctoPrint Connection Plugin has changed.
Logging into Discord is too complicated for me.
rm -rf ~/.local/share/cura/4.5/plugins/OctoPrintPlugin/*`
cd ~/.local/share/cura/4.5/plugins/OctoPrintPlugin
git clone https://github.com/fieldOfView/Cura-OctoPrintPlugin
cd Cura-OctoPrintPlugin/
git checkout 3cef0a9
Works
So https://github.com/fieldOfView/Cura-OctoPrintPlugin/commit/3cef0a955ae7ccfa5c07d20d9d147c530cc9d6ec (version 3.5.11) is known good.
Do you know how to do a git bisect to find the offending commit?
Can you post the POST request from a working and a non-working version for comparison?
Here something was changed regarding the print parameter:
https://github.com/fieldOfView/Cura-OctoPrintPlugin/commit/ab40c033cb36115575380c234340b893df091aad
I have opened tickets in the https://github.com/fieldOfView/Cura-OctoPrintPlugin project, let's continue there.
According to https://github.com/fieldOfView/Cura-OctoPrintPlugin/issues/156#issuecomment-596106186 it looks like we either need to support that additional "start printing" command, or just comment out the if (request->hasParam("print", true))
condition so that we always start printing regardless of whether the client requests it or not.
It's a bit unfortunate that the OctoPrint Connection Plugin continues to use more and more of OctoPrint's API, while we are trying to get away with the most minimal subset possible.
Maybe we have to develop an Cura Plugin?
Fixed in the latest build. Thanks for reporting @cpeuschel
im using Cura 4.5 and OctoPrint Version 3.5.12 on Mac OS Catalina (10.15.3) and the Continuous build on my esp8266. if i click "print with OctoPrint", the gcode is uploading and the LCD says "Receiving..." while the upload is done it says "Received" and than nothing happens.
Telnet Output:
if i start the print directly on "http://the-ip-address/" the printer starts the print.