NodeJS & PHP Unable to Parse POST Body

Wappler Version : 4.4.5
Operating System : Windows 10
Server Model: PHP & NodeJS (Docker & local both)

Expected behavior

POST body sent should get processed.

Actual behavior

Request fails with 400 on local, and 500 on production server.
Production server is PHP.
Local I have tested on both PHP (Docker) & NodeJS (local)

How to reproduce

Here is the body that is reliably able to reproduce the error.
Just create a simple server action with one step: set value. Set the value of this to {{$_POST}} and see the 400 response when calling this server action using POST & attached body.

postbody.zip (10.1 KB)

Bump. @patrick

What is the exact error message you are getting?

You could have just tested to see it.

Forgot to post the image from the other post:

@patrick Bump.

Which content-type do you use when posting the json?

JSON - application/json

I’ve tested posting your json to a server action (nodeJS) and got no error, $_POST shows all the data correctly.

Ran a few more tests. Turns out, there is a content-length header in the request as well.
It had a wrong value from some previous test requests, which is why Wappler was unable to parse it.

So, as of now, I still don’t know why the webhook request fails when called directly, but passes when called with same headers & body from Postman.