1. Home
  2. Troubleshooting
  3. Error: It looks like your current webhook call as no action argument defined, it is deactivated or it does not have any action function.

Error: It looks like your current webhook call as no action argument defined, it is deactivated or it does not have any action function.

You normally receive this message in the following format:

{
success: false,
data: "",
msg: "It looks like your current action is deactivated or it does not have any action function."
}

It means, that our plugin can’t find the “action” parameter while you send a action request to your website.
Apart of forgetting to define the action parameter, it can also have some other causes that this message appears.
We will send the known ones down below:

Wong data format

It is important that you define the action within the first layer of the data you send. This issue happens then, when you use a multidimensional array to post the data to your site. Down below you will see an example on what works and what not:

This works:
{"action":"create_post"}
This doesn’t work:
{"data":[{"action":"create_post"}]}
Note: You can still make this work by using the Data Mapping feature, which comes with WP Webhooks Pro

No POST data is sent

In case you use WP Webhooks to test the functionality using the test forms within the single webhooks (or other forms on websites), it is possible that you will receive this error.
The problem is, that some websites are configured in a way that POST data is not sent due to htaccess rules or firewalls.
To test it, please set up a demo post form and check if the values arrive on the action page.

The Content-Type does not fit to the payload

The error can also occur when you send the data, for example, with the content-type application/text, but you define a JSON construct within the body.
To fix that, you need to set the content-type accordingly to the payload, as for this example: application/json

Updated on October 18, 2021

Was this article helpful?