Hello Guys. I’m opening this topic because I haven’t found any usable topics about this problem yet.
I’m running node.js with the script below, and when I activate an event on plex, I get a pair of curly braces back (empty JSON, I think), logging request.body without any information.
I’m having the same issue. Both plex and node server on the same host. I’m definitely getting a POST request but it is coming in with an empty body. You ever sort this one out?
edit:
nvm pretty sure I figured this out. body-parser urlencoded doesn’t work for for multi-part form data, which is the content type for Plex Webhooks. You need to use a different parser. See here: https://www.npmjs.com/package/body-parser#readme They recommend you use something like formidible or multer
I still can’t solve it, so I’m using PHP. I can post the code if you want to use it as well. It works perfectly. The olny problem is that it’s slow, perhaps because I’m using ZWave devices.