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
@karnativr, you just advanced to level 1!
@karnativr could you please share the environmentId from settings and transactionId from activity feed for this trigger?
okay
Environment Id:65884a2456dde6ac09edcf23
transactionID:fca539b1-3fd7-4a88-aa8d-72e7734441a6
@Pawan Jain
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.
Where can I see the topics I created on the dashboard?
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.
I didn't create any tenants, but when I created topic, I got the response object indicating the topic has been created successfully
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 convenienceYeah 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
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 :)
Haa
@karnativr, you just advanced to level 2!
@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
I will check once
Yeah Thank you, Its working now