Skip to content

Troubleshooting / Unable to Call API via POST Method

The possible causes are as follows:

1. Confusing the 'Simplified' and 'Standard' Forms

Check whether the request URL and request body are correct, and avoid mixing the 'Simplified' and 'Standard' forms.

For details, see Script Development / Basic Concepts / Func API

2. HTTP Request Redirected to HTTPS Request

Confirm whether DataFlux Func is behind a reverse proxy server such as Nginx, and whether the reverse proxy server redirects your HTTP requests to HTTPS requests.

If so, the POST http://xxxxx request you send will be redirected to a GET https://xxxxx request, and the content in the original request body will be lost.

Change the request to directly send POST https://xxxxx to resolve the issue.