Webhook, HTTP response code 415 (unsupported media type)

Hi!

I’m trying to use the webhook feature to send a message to an asp.net core webapi that I wrote.
I’m kinda guessing the media type of the http post the webhook is doing, and guessing app/json is the wrong one. As I’m getting response code 415 in server logs.

Anyone know what kind of mediatype the post is?

When I send the sample body from the webhook article, everything is working as it should be.
But that is without any additional headers. So I guess it could be missing something else too.

//B

EDIT:

If anyone else stumbles upon this:

image

This was how I handled the multipart form. (i ignore the second part, and only care about the first.)

https://support.plex.tv/articles/115002267687-webhooks/

As stated above, the payload is sent in JSON format inside a multipart HTTP POST request. For the media.play and media.rate events, a second part of the POST request contains a JPEG thumbnail for the media.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.