posthog
posthog copied to clipboard
Webhook is not respecting Action Filters
Bug description
When setting up filters on custom properties of a custom event in PostHog Actions, the Webhook is being invoked for events that should be filtered out. For example, we are filtering out Auth Login issues where the user enters the wrong username or password so that we are only alerted if there is a system issue.
After setting up this action in the UI, we see only a list of events that match our filters:
However, in Slack, we are being notified for Auth Login issues that should be filtered out:
How to reproduce
- Create an Action on a Custom Event
- Add two filters using
doesn't contain
that filter out a custom event property. - Add a Webhook to the Action.
Environment
- [X] PostHog Cloud
Additional context
This may be due to the text we're trying to filter out being included as a subproperty of error
and messages
. In both cases, the text in question is located in messages.text
or error.text
.
Thank you for your bug report – we love squashing them!
This issue hasn't seen activity in two years! If you want to keep it open, post a comment or remove the stale
label – otherwise this will be closed in two weeks.
This issue was closed due to lack of activity. Feel free to reopen if it's still relevant.