-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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: Triggering an event for multiple receivers fails when one of them is invalid #6572
Comments
I realized it's probalbly not cause by the topic's existence but by the mere fact I'm passing multiple topics - adjusted the issue accordingly. |
This is correct format
|
Oh, I see, Then the error is more what I thought first - once an entry is invalid, nothing will be sent. I've tested again, even this won't work: ...
"to": [
{
"type": "Topic",
"topicKey": "first-topic"
},
{
"type": "Topic",
"topicKey": "non-existent-topic"
},
] So, subscribers of
In the first scenario I'ld expect to reveive a message from |
Yes you are right. if any entry is invalid. Notification is not delivered. This sounds like a bug. |
@JonasDoe can u assign this issue to me |
📜 Description
Update: I've posted an updated and more precise description of the error in a comment below.
Old description:
I trigger an event with this payload:
mySubscriber
will get a notification, subscribers tomyTopic
won't. Removing the secondto
entry won't help - the topic won't receive the event as long asto
has the form of a list.👟 Reproduction steps
myExistingTopic
and subscribe with a user to it.The response is
201
withmyTopic
didn't receive any messge, while the subscriber did. Furthermore, in the Novu Center's Activity Feed you won't see anything aboutmyTopic
.👍 Expected behavior
The users subscribed to
myTopic
should receive a message about the triggered event.👎 Actual Behavior with Screenshots
The users subscribed to
myTopic
doesn't receive a message about the triggered event.Novu version
0.24.0
npm version
I cannot provide this information right now, but we're basically using ghcr.io/novuhq/novu/api:0.24.0
node version
20.11.1
📃 Provide any additional context for the Bug.
It seems like triggering an event for a topic works when it's not in an array. So
will work.
👀 Have you spent some time to check if this bug has been raised before?
🏢 Have you read the Contributing Guidelines?
Are you willing to submit PR?
None
The text was updated successfully, but these errors were encountered: