My requests to the Octoprint API seem to be going through successfully, but don't seem to be actually doing anything on the printer, either the VIRTUAL printer or my real Prusa i3MK3S printer.
I have tested this out with two API requests: connecting to the printer, and selecting a file to print from the storage system. I can see the requests in the tornado.logs coming in, and both having a 200 response (I even tried with a filename that did not exist and got a correct 404 response).
When I send the same requests with a cURL command using the same API token and headers, they work correctly and I can see my printer (either the real one or the VIRTUAL printer) as connected in the Octoprint web app. These requests made using cURL also show up in the octoprint.log file, while my other API requests from my program only show up in tornado.log.
I attempted to turn on more logging for tornado.log, but always get an error when trying to save it as INFO level in the octoprint.log file:
AttributeError: 'PlaceHolder' object has no attribute 'setLevel'
When coming back to the logs settings in the web application, it is reset to default and did not save my changes and I do not get any more logging out of the system.
I'm wondering if there is a reason my cURL requests seem to work fine, and even though I can see that my other API requests coming from a program I wrote can make it to the tornado.log file as a success, that they do not seem to have an effect on the printer at all. I do not seem to be able to enable more logging to look further into the issue as well.
- Restart and run in safe mode
- Look in octoprint.log and tornado.log to verify that the API requests are making it to the Octoprint server (they are)
- Try with cURL requests using the same API token as the API requests I am sending, I can see these in the octoprint.log and the printer will respond to the cURL requests correctly
- Try to enable more logging for tornado.log file, this resulted in the error mentioned above
- Verify that the API requests are using the same API token
You can download this in OctoPrint's System Information dialog ... no bundle, no support!)
Attached bundle here
octoprint-systeminfo-20230911004426.zip (403.4 KB)
OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible
Octoprint version 1.9.2
Printer: Testing on the VIRTUAL printer from the virtual printer plugin, also the Prusa i3MK3s
Operating system: MAC M1