craftcms / webhooks

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

JS console errors, event name not selectable, saving broken #42

Closed riccardolardi closed 3 years ago

riccardolardi commented 3 years ago

Description

Upon pressing "new webhook" I get two JS errors in console and then I'm not able to choose event name nor save the webhook. Clicking save leads to 403 Forbidden error.

Console errors:

vue.js:6 TypeError: Cannot set property 'onInputChange' of undefined
    at wn.data (new:705)
    at wn.<anonymous> (vue.js:6)
    at vue.js:6
    at vue.js:6
    at vn (vue.js:6)
    at wn.t._init (vue.js:6)
    at new wn (vue.js:6)
    at new:697
ReferenceError: filteredOptions is not defined
    at wn.eval (eval at Ya (vue.js:6), <anonymous>:3:141)
    at wn.e._render (vue.js:6)
    at wn.r (vue.js:6)
    at fn.get (vue.js:6)
    at new fn (vue.js:6)
    at vue.js:6
    at wn.$mount (vue.js:6)
    at wn.$mount (vue.js:6)
    at wn.t._init (vue.js:6)
    at new wn (vue.js:6)

Steps to reproduce

  1. Click "new webhook"
  2. See console errors
  3. Hit "save"

Additional info

carlcs commented 3 years ago

I submitted a pull request earlier today that fixes this issue. https://github.com/craftcms/webhooks/pull/41

angrybrad commented 3 years ago

Fixed this in Craft 3.6.4. Sorry about that!

riccardolardi commented 3 years ago

Thanks for the quick response.

The JS error is gone since Craft 3.6.4 but I still get a 403 error from the server once saving the webhook:

Forbidden
You don't have permission to access this resource.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Is this related?