Back

Can't create/update webhook with trigger on function execution on 1.4.2

  • 0
  • Webhooks
Inovvia
11 Sep, 2023, 03:32

Error Message: Invalid events param: Value must a valid array and Triggering a function on a function event is not allowed.

My payload is

TypeScript
{"name":"test","events":["functions.*.executions.*"],"url":"http://test:3000/webhooks/functions","security":false}
TL;DR
Title: Issue with creating/updating webhooks for function execution triggers on version 1.4.2 I am unable to create or update a webhook with a trigger on function execution in version 1.4.2. The error message says that the "events" parameter is invalid and triggering a function on a function event is not allowed. Solution: Currently, there doesn't seem to be a solution mentioned in the thread. However, it is recommended to create an issue for this problem and provide the necessary details for the developers to investigate and fix the issue.
Binyamin
11 Sep, 2023, 13:00

How do you run it? Can you walk us through the steps you've taken?

Inovvia
11 Sep, 2023, 14:51

I just used the admin console to create a webhook

Binyamin
11 Sep, 2023, 14:58

Ohh got it Because it can be abusive Appwrite added protection from running function after a function, but it seems like it should be effective only for functions and not WebHooks

Couldn't find any issue on it, it might be worth to open one.

Drake
11 Sep, 2023, 21:08

Can't create/update function to trigger on execution on 1.4.2

Drake
11 Sep, 2023, 21:45

Can't create/update webhook with trigger on function execution on 1.4.2

Drake
11 Sep, 2023, 21:47

this is also helpful on self-hosted to protect you from destroying your self hosted instance. However, it definitely should be for functions only and not on webhooks. It would be good to create an issue for this

Binyamin
11 Sep, 2023, 21:48

👍 I'll create one

Binyamin
11 Sep, 2023, 21:59
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more