Direct Piston Execution - image/jpeg payload


#1

1) Give a description of the problem
Plex is able to send webhooks to a designated URL and I’m using them to trigger pistons directly. While I can process most of the events that I need, the payload sent when starting media playback contains both an application/json payload and an image/jpeg (binary) payload. I’m guessing that the image payload is causing the following exception (from live logging):

12:57:16 PM: error org.apache.commons.lang.UnhandledException: org.codehaus.groovy.grails.web.converters.exceptions.ConverterException: Error converting Bean with class java.io.File @line 1591 (api_execute)

Will binary payloads ever be supported/handled?

2) What is the expected behavior?
webhook should trigger the piston

3) What is happening/not happening?
Since the webhook errors, the piston does not even attempt to run.

4) Post a Green Snapshot of the pistonimage
It’s not really complete since a key event is not triggering, but it should give you an idea.

5) Attach any logs (From ST IDE and by turning logging level to Full)

12:57:16 PM: error org.apache.commons.lang.UnhandledException: org.codehaus.groovy.grails.web.converters.exceptions.ConverterException: Error converting Bean with class java.io.File @line 1591 (api_execute)


Plex Webhooks and Webcore
#2

I should note that the PlexPlus app does support lighting and such, but I think this would be more flexible and better fit my needs.


#3

I’ve submitted an enhancement request to Plex to help resolve this. If you think this would be useful, can you vote for the request?