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.
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.