Title: Webhook Error &#8220;400 Bad Request&#8221;
Last modified: January 8, 2025

---

# Webhook Error “400 Bad Request”

 *  [Newdada Comunicazione](https://wordpress.org/support/users/newdada/)
 * (@newdada)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/webhook-error-400-bad-request/)
 * Hi,
 * I saw that other users also had problems with the latest version of the plugin.
 * Since January 2nd we have been receiving the automatic plugin warning about a
   malfunction in one of the site’s forms:
 *     ```
       If you plugin is active the contact form submission shows a generic submission error; by disabling the plugin the form starts without problems.
       ```
   
 * _Obviously_ we haven’t changed anything in the original form since a few months..
   
   Thank you
    -  This topic was modified 1 year, 5 months ago by [Newdada Comunicazione](https://wordpress.org/support/users/newdada/).
    -  This topic was modified 1 year, 5 months ago by [Newdada Comunicazione](https://wordpress.org/support/users/newdada/).
    -  This topic was modified 1 year, 5 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
    -  This topic was modified 1 year, 5 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwebhook-error-400-bad-request%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Mário Valney](https://wordpress.org/support/users/mariovalney/)
 * (@mariovalney)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/webhook-error-400-bad-request/#post-18232133)
 * Hi.
 * As you can see in your notification, your webhook is returning a error: **400
   Bad Request**
 * Please, check your Zapier integration.
 *  [tt1277](https://wordpress.org/support/users/tt1277/)
 * (@tt1277)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/webhook-error-400-bad-request/#post-18235727)
 * I am also getting some weird errors since the recent update “An error of type
   E_PARSE was caused in line 439”.
   Asking ChatGPT to review this code snippet:
 * _wp\_mail(
   $error\_mails,sprintf( \_\_( ‘[%s] Webhook Error on Form %s’, ‘cf7-
   to-zapier’ ), wp\_specialchars\_decode( get\_option( ‘blogname’ ), ENT\_QUOTES),
   $form ),$notification,);
 * **ChatGPT said:**
 * Possible Issue:
    - In this `wp_mail` function call, the trailing comma `,` after the third parameter(`
      $notification`) is incorrect syntax. In PHP, there should **not** be a comma
      after the last parameter in a function call.
    - **Correct this by removing the comma** at the end of the parameters.
 * Here’s how the fixed function should look:
 * _wp\_mail(
   $error\_mails,sprintf( \_\_( ‘[%s] Webhook Error on Form %s’, ‘cf7-
   to-zapier’ ), wp\_specialchars\_decode( get\_option( ‘blogname’ ), ENT\_QUOTES),
   $form ),$notification);
 * Not sure if this issue is related… our webhooks are working, but just getting
   this error which was not happening before the recent update.
 *  Plugin Author [Mário Valney](https://wordpress.org/support/users/mariovalney/)
 * (@mariovalney)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/webhook-error-400-bad-request/#post-18236592)
 * Thanks for pointing this! I’ll check it out.
 * But no: It’s not related. The notification means everything is OK, but your server
   is returning a **400 Bad Request**.
 * Said that, I figured maybe your header is broken:
 *     ```wp-block-code
       {"Content-Type":"application\/json; charset=UTF-8","To get utm_source":"https:\/\/example.com\/?utm_source=example","Use this shortcode":"[hidden utm_source default:get]"}
       ```
   
 * “To get utm_source” and “Use this shortcode” are pretty sure a invalid header.
   Remove everything from headers option and try again, please.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Webhook Error “400 Bad Request”’ is closed to new replies.

 * ![](https://ps.w.org/cf7-to-zapier/assets/icon-256x256.jpg?rev=3214555)
 * [CF7 to Webhook](https://wordpress.org/plugins/cf7-to-zapier/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-to-zapier/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-to-zapier/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-to-zapier/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-to-zapier/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-to-zapier/reviews/)

## Tags

 * [404-error](https://wordpress.org/support/topic-tag/404-error/)

 * 5 replies
 * 5 participants
 * Last reply from: [Mário Valney](https://wordpress.org/support/users/mariovalney/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/webhook-error-400-bad-request/#post-18236592)
 * Status: not resolved