N
Novu10mo ago
karnativr

Not getting notifications from topics

When I trigger topics, the subscribers added to the topic are not getting notifications,I use python for backend and angular for frontend.can someone help?, I am happy to share the code
14 Replies
Novu_Bot
Novu_Bot10mo ago
@karnativr, you just advanced to level 1!
Pawan Jain
Pawan Jain10mo ago
@karnativr could you please share the environmentId from settings and transactionId from activity feed for this trigger?
karnativr
karnativrOP10mo ago
okay Environment Id:65884a2456dde6ac09edcf23 transactionID:fca539b1-3fd7-4a88-aa8d-72e7734441a6 @Pawan Jain
Mei
Mei10mo ago
I have found that Novu silently ignores a trigger in its entirety if you include a topic identifier that doesn't already exist, and that could be the reason for what you're experiencing.
karnativr
karnativrOP10mo ago
Where can I see the topics I created on the dashboard?
Mei
Mei10mo ago
Sadly there isn't a way to view topics in the web interface yet. I also just remembered there's another reason why the same behaviour might happen: if you trigger an event for a tenant that hasn't been created yet. Just thought I'd let you know in case you're using tenants as well.
karnativr
karnativrOP10mo ago
I didn't create any tenants, but when I created topic, I got the response object indicating the topic has been created successfully
Mei
Mei10mo ago
Tenants shouldn't be causing your problem unless you're including { tenant: "someid" } in your trigger I believe you can get a list of topics from the API using https://docs.novu.co/api-reference/topics/filter-topics with an empty key argument and probably a larger pageSize for convenience
karnativr
karnativrOP10mo ago
Yeah I was able to fetch the topic I created through API I got the list of subscribers there too When I triggered topic, there was no issue, I got the data object having transaction ID too
Mei
Mei10mo ago
Okay, so it doesn't sound like it's any of the issues I mentioned. Might be something to do with the subscribers' preferences for the workflow. Good luck, hopefully Pawan Jain can help you :)
karnativr
karnativrOP10mo ago
Haa
Novu_Bot
Novu_Bot10mo ago
@karnativr, you just advanced to level 2!
Pawan Jain
Pawan Jain10mo ago
@karnativr As per logs, I can see that you are not sending topic key. This is the error:- topicKey should not be null or undefined","topicKey must be a string
karnativr
karnativrOP10mo ago
I will check once Yeah Thank you, Its working now
Want results from more Discord servers?
Add your server