fieldOfView / Cura-OctoPrintPlugin

Cura plugin which enables printing directly to OctoPrint and monitoring the process
GNU Affero General Public License v3.0
484 stars 74 forks source link

OctoPrint API Key Error #321

Open KGuthrie040 opened 10 months ago

KGuthrie040 commented 10 months ago

Cura Version 5.4.0

Operating System Windows 11

Printer Ender 3 Pro with Octoprit

OctoPrint Version 1.92

Every time I try to send a print to OctoPrint I get an API key error.
image

I have tried to reset my API key as well as redownload the addon. Nothing I have done works. I have another printer with Octoprint 1.9.0 and I do not have the same issue.

Has something changed between 1.9.2 and 1.9.0?

robin-thoni commented 5 months ago

Are you trying to turn on the PSU through OctoPrint with a non-admin account?

image

If so, you need to make sure the user you have configured in Cura has the PSU Control: Control permission. Settings => Access Control. Either give your user an additional permission, or add it to a group and give the group the permission.

In my case, I set up a user and added it to the Operator group, and gave the PSU Control: Control permission to the Operator group :

image

If not, check your OctoPi logs (tornado.log) and search for something like this:

2024-01-15 18:28:13 - tornado.access - WARNING - 403 POST /api/plugin/psucontrol (::ffff:10.15.15.127) 44.79ms