Troubleshooting / Unable to Call API via POST Method
Generally, the following possibilities exist:
1. Confusion Between "Simplified" and "Standard" Forms
Check if the request URL and request body are correct, and avoid mixing "Simplified Form" and "Standard Form".
For details, please refer to Script Development / Basic Concepts / Function API
2. HTTP Request Redirected to HTTPS Request
Confirm whether DataFlux Func is behind a reverse proxy server like Nginx, and whether the reverse proxy server redirects your HTTP request to an HTTPS request.
If so, your sent POST http://xxxxx will be redirected to a GET https://xxxxx request, and the content originally in the request body will be lost.
Changing the request to directly send POST https://xxxxx will solve the problem.