novu icon indicating copy to clipboard operation
novu copied to clipboard

🐛 Bug Report: Notification fails due to subscriber not having channel configured for push channel

Open jarredwitt opened this issue 1 year ago • 4 comments

📜 Description

We have a workflow that sends out an email and a push notification to all of our subscribers. Push notifications are opt-in on our platform so while the subscriber will have an email channel they may not have the push channel configured if they didn't opt-in. This leads to a lot of our notifications displaying like this in the activity feed:

CleanShot 2023-12-08 at 10 18 52

IMO the notification didn't fail to send, the subscriber just didn't have the channel configured. Is it possible to skip a workflow step if a channel isn't configured for a subscriber? This is really bloating our activity feed with lots of failures when in fact they aren't actually failing. Our worker logs are also displaying a lot of the same errors and it's causing a lot of noise in our logging for no reason.

👟 Reproduction steps

Create workflow that has an email step and a push notification step. Send a notification to a subscriber that has the email channel configured, but not the push notification channel.

👍 Expected behavior

It should skip the push notification step if the subscriber doesn't have the channel configured.

👎 Actual Behavior with Screenshots

The notification fails due to the channel not being configured.

CleanShot 2023-12-08 at 10 18 52

Novu version

0.21.0

npm version

No response

node version

No response

📃 Provide any additional context for the Bug.

No response

👀 Have you spent some time to check if this bug has been raised before?

  • [X] I checked and didn't find a similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to submit PR?

None

jarredwitt avatar Dec 08 '23 16:12 jarredwitt

@jainpawan21 can I pick this for grabs, it's my first time here and I want to see if this is possible to achieve. Let me know if you want me to pick this.

uncle-tee avatar Dec 19 '23 10:12 uncle-tee

Hi @uncle-tee

Thanks for your interest in contribution. As this github issue is suggesting a change in how execution works, I will need to discuss this with team if we should go ahead as suggested in this issue.

jainpawan21 avatar Dec 19 '23 12:12 jainpawan21

How to fixed this issue?

Pornpunnarai avatar Jun 10 '24 12:06 Pornpunnarai