Webhook not trigger

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

below the error log

{
  "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"
          }
        ]
      ]
    }
  ]
}

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

1 Like