Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
jarredwitt opened this issue Dec 8, 2023 · 7 comments
Labels

Comments

@jarredwitt
Copy link

📜 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?

  • I checked and didn't find a similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to submit PR?

None

@jainpawan21 jainpawan21 added linear and removed linear labels Dec 16, 2023
@uncle-tee
Copy link

@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.

@jainpawan21
Copy link
Member

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 jainpawan21 reopened this Jan 3, 2024
@jainpawan21 jainpawan21 changed the title 🐛 Bug Report: Notification fails due to subscriber not having channel configured 🐛 Bug Report: Notification fails due to subscriber not having channel configured for push channel Jan 3, 2024
@Pornpunnarai
Copy link

How to fixed this issue?

@paulwer
Copy link
Contributor

paulwer commented Oct 25, 2024

Could this at least be treated different in the ui?

Some note: This also results in an issue where the frontend stops refreshing the status of the workflow in the local studio while executing a test run. Steps afterwards get executed, but this is not visible in the frontend.

@jarredwitt
Copy link
Author

Is there a way this can be elevated? Our admin activity feed shows 400+ notification errors for this month because of this bug. It's creating a ton of false positives for us and additional work for our admins because we have to look at each failure to see if there is actually a problem.

@Reizar
Copy link

Reizar commented Nov 27, 2024

+1 this is also causing big issues for us.

It also means we can't use the retry logic. We have the same setup where users have emails on by default and push notifications are opt in. We can't use the retry logic because even though the email step in the workflow succeeds, the push notification step fails and then it retries the entire workflow. Which causes emails to be sent over and over again.

@bibhuti9
Copy link

Hey any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants