bchanudet / OctoPrint-Octorant

Discord plugin for OctoPrint
MIT License
26 stars 14 forks source link

The variable `{error}` is invalid for `Printer state : error` #54

Open rwaight opened 2 years ago

rwaight commented 2 years ago

I have Octorant installed, running on OctoPrint Version: 1.6.1. My printer recently had a MINTEMP error, but Octorant was not able to send me the error message. Am I missing something in my plugin configuration?

The Printer state : error configuration is: ⚠️ Your printer is in an erroneous state. The error received was: {error}

When the MINTEMP error occurred, Octorant notified me that there was an error but the following message was sent to Discord:

⚠️ Your printer is in an erroneous state. The error received was: {error} :sos: Octorant Warning The variable {error} is invalid for this message: Available variables: {spent_formatted}, {remaining}, {remaining_formatted}, {spent}

It appears that the error variable is correct, since the OctoPrint documentation for 1.6 states:

Error An unrecoverable error has been encountered, either as reported by the firmware (e.g. a thermal runaway) or on the connection.

Note that this event will not fire for error messages from the firmware that are handled (and as such recovered from) either by OctoPrint or a plugin.

Payload: error: the error string