# Webhook not trigger

**URL:** <https://discourse.getcockpit.com/t/webhook-not-trigger/2770>\
**Category:** Uncategorized\
**Created:** [April 10, 2023, 5:51am UTC](https://discourse.getcockpit.com/t/webhook-not-trigger/2770 "2023-04-10T05:51:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![creativeplusplus](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/creativeplusplus/32/844_2.png) [@creativeplusplus](https://discourse.getcockpit.com/u/creativeplusplus)\
**Post date:** [April 10, 2023, 5:51am UTC](https://discourse.getcockpit.com/t/webhook-not-trigger/2770/1 "2023-04-10T05:51:34Z")

</div>

Dear Arthur,

If I copy paste URL in browser its trigger build in vercel,  
but the events not triggered when save content item or update pages,  
any wrong in events?

manual trigger return 500

 ![Screenshot 2023-04-10 at 12.40.04](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/2X/a/a8fb606b2e98327a98ab609cfb4d27b4a1eeb720.png)

below the error log

```auto
{
  "message": "str_replace(): Argument #2 ($replace) must be of type string when argument #1 ($search) is a string",
  "file": "/home/creative/public_html/jlb/addons/Webhooks/bootstrap.php",
  "line": 23,
  "trace": [
    {
      "file": "/home/creative/public_html/jlb/addons/Webhooks/bootstrap.php",
      "line": 23,
      "function": "str_replace",
      "args": [
        "$argv",
        [],
        "https://api.vercel.com/v1/integrations/deploy/prj *************************/*******"
      ]
    },
    {
      "file": "/home/creative/public_html/jlb/addons/Webhooks/bootstrap.php",
      "line": 27,
      "function": "{closure}",
      "class": "Lime\\Module",
      "type": "->",
      "args": [
        "https://api.vercel.com/v1/integrations/deploy/prj *************************/*******"
      ]
    },
    {
      "file": "/home/creative/public_html/jlb/lib/Lime/App.php",
      "line": 1360,
      "function": "{closure}",
      "class": "Lime\\Module",
      "type": "->",
      "args": [
        {
          "enabled": true,
          "name": "update form admin",
          "info": "",
          "url": "https://api.vercel.com/v1/integrations/deploy/prj *************************/*******",
          "method": "GET",
          "headers": [],
          "events": [
            "pages.page.save",
            "content.item.save"
          ],
          "body": {
            "payload": true,
            "custom": true,
            "contents": null
          },
          "_modified": 1681102644,
          "_mby": "822b553a626536a3b800018c",
          "_created": 1681100721,
          "_cby": "822b553a626536a3b800018c",
          "_id": "1e1d0e3035613055720001e0"
        }
      ]
    },
    {
      "file": "/home/creative/public_html/jlb/addons/Webhooks/Controller/Webhooks.php",
      "line": 118,
      "function": "__call",
      "class": "Lime\\Module",
      "type": "->",
      "args": [
        "execute",
        [
          {
            "enabled": true,
            "name": "update form admin",
            "info": "",
            "url": "https://api.vercel.com/v1/integrations/deploy/prj *************************/*******",
            "method": "GET",
            "headers": [],
            "events": [
              "pages.page.save",
              "content.item.save"
            ],
            "body": {
              "payload": true,
              "custom": true,
              "contents": null
            },
            "_modified": 1681102644,
            "_mby": "822b553a626536a3b800018c",
            "_created": 1681100721,
            "_cby": "822b553a626536a3b800018c",
            "_id": "1e1d0e3035613055720001e0"
          }
        ]
      ]
    }
  ]
}

```

---

<div class="post-metadata">

**Author:** ![artur](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/artur/32/4_2.png) [@artur](https://discourse.getcockpit.com/u/artur)\
**Post date:** [April 10, 2023, 11:10pm UTC](https://discourse.getcockpit.com/t/webhook-not-trigger/2770/2 "2023-04-10T23:10:05Z")

</div>

Thanks for reporting. Should be fixed in the latest dev release:

> **[releases/develop • Cockpit files](https://files.getcockpit.com/?dir=releases%2Fdevelop)**
>
> Cockpit files
