craftcms / webhooks

Plugin for integrating Craft with Zapier and IFTTT.
https://plugins.craftcms.com/webhooks
MIT License
84 stars 12 forks source link

No Requests Logged as Headless CMS #33

Closed jjrchrds closed 4 years ago

jjrchrds commented 4 years ago

I'm using Craft as a headless cms on FortRabbit. I installed the webhooks plugin, and set up a webhook with netlify for the afterSave event.

I'm not getting any activity on saving a new entry.

jjrchrds commented 4 years ago

on local and on our staging environment, no activity in webhooks.

brandonkelly commented 4 years ago

Headless shouldn’t have anything to do with it. What versions of Craft and the plugin are you using?

jjrchrds commented 4 years ago

Understood and agreed. Shouldn't I atleast see it fail in the activity?

craft: Craft CMS 3.4.23

Webhooks 2.2.0

jjrchrds commented 4 years ago

Sender Class: craft\elements\Entry

Event Name: afterSave

brandonkelly commented 4 years ago

Is the webhook enabled?

jjrchrds commented 4 years ago

Yes it is, that's why I'm so puzzled. Not getting any activity, followed the example, not working on local, or on server. Does it matter that my PRO is in TRIAL right now?

brandonkelly commented 4 years ago

Nope, the plugin doesn’t care which Craft edition you have.

Does your webhook have any filters set on it?

jjrchrds commented 4 years ago

New and Revision are set to true Everything else is false.

Locallay, i have set everything to true, and still there is no activity. I know I must be doing something simple, wrong, but I can't seem to find what it is.

brandonkelly commented 4 years ago

OK, that’s probably the issue, as revisions are never considered “new” by that filter.

If you want the webhook to fire each time a new entry is created, go with these filters:

Event filters

(Note that “Element is enabled” is a new filter that was just added in 2.3.1.)