OctoPrint-Webhooks icon indicating copy to clipboard operation
OctoPrint-Webhooks copied to clipboard

"Invalid JSON for DATA setting"

Open stevenwbuehler opened this issue 3 years ago • 2 comments

The application is telling me that the following is invalid JSON for sending a "Print Done" webhook (sending to a Google Apps Script to add a row to a Google Sheet):

{
    "sheetid": "1L3Kl8TPWNtI1_zXaj8U77OYhoZOcajAozUI-LNDijC4",
    "row": [
        "=localDateTime(@currentTime)",
        "@job.file.name",
        "@jobfile.size",
        "=TIME(0,0,@job.estimatedPrintTime)",
        "=TIME(0,0,@job.lastPrintTime)",
        "@job.filament.tool0.volume",
        "@job.filament.tool0.length",
        "@meta.analysis.dimensions.width",
        "@meta.analysis.dimensions.depth",
        "@meta.analysis.dimensions.height"
    ]
}

stevenwbuehler avatar Aug 20 '22 20:08 stevenwbuehler

I had the same problem. It seems that saving the changed settings does not work reliably. I edited OctoPrint's config.yaml manually to get the webhooks working as I wanted.

holgi avatar Jan 01 '23 14:01 holgi

The settings save issue should be resolved in the latest version (3.2.0) via https://github.com/derekantrican/OctoPrint-Webhooks/issues/1

derekantrican avatar May 17 '23 21:05 derekantrican