I'm using a Python script and the REST API to fetch the printer state and report it to my home automation system. This has been working great for nearly a year. Recently, it stopped working and I have found that the API GET returns 409 errors:
octoprint.log:
2019-04-06 12:36:09,852 - tornado.access - WARNING - 409 GET /api/printer?apikey=REDACTED (::ffff:127.0.0.1) 22.29ms
2019-04-06 12:37:15,371 - tornado.access - WARNING - 409 GET /api/printer?apikey=REDACTED (::ffff:127.0.0.1) 21.67ms
2019-04-06 12:38:17,373 - tornado.access - WARNING - 409 GET /api/printer?apikey=REDACTED (::ffff:127.0.0.1) 23.75ms
2019-04-06 12:39:19,372 - tornado.access - WARNING - 409 GET /api/printer?apikey=REDACTED (::ffff:127.0.0.1) 23.26ms
2019-04-06 12:40:21,295 - tornado.access - WARNING - 409 GET /api/printer?apikey=REDACTED (::ffff:127.0.0.1) 26.23ms
2019-04-06 12:41:23,292 - tornado.access - WARNING - 409 GET /api/printer?apikey=REDACTED (::ffff:127.0.0.1) 22.99ms
2019-04-06 12:45:30,926 - tornado.access - WARNING - 409 GET /api/printer?apikey=REDACTED (::ffff:127.0.0.1) 34.78ms
2019-04-06 12:46:32,880 - tornado.access - WARNING - 409 GET /api/printer?apikey=REDACTED (::ffff:127.0.0.1) 10.32ms
I'm running Octoprint version1.3.10 and OctoPi version 0.15.1. To troubleshoot I have:
- Restart my script and octoprint several times.
- Reviewed the API documentation to make sure the API has not changed.
- Search the web and forums for the 409 error. None of the cases match mine