N
Novu10mo ago
cmendoza

Triggered notification returned 201 but did not receive anything nor it showed in the activity feed

While I was testing the REST API for triggering fcm notifications (via Postman), there's a particular instance where the notification did show up anywhere despite getting a 201 acknowledged response. I checked the Activity feed and get-notifications api and couldn't find it anywhere. I'm wondering what could have been the reason and if it's a common occurrence on REST APIs 🤔 transactionId is f2251a9e-c4ed-4c4a-9969-478dd7dffcb3 see screenshot for the postman response
No description
9 Replies
cmendoza
cmendoza10mo ago
FYI: I sent the exact same request a couple of times and they got received successfully, so it could not have been due to a bad request
Pawan Jain
Pawan Jain10mo ago
Hi @cmendoza Can you please share curl request you used to trigger above event (notification)
cmendoza
cmendoza10mo ago
Hey @Pawan Jain , thanks for checking. I sent that particular request via postman, but this should be the equivalent (or atleast similar)
curl --location --request POST 'https://api.novu.co/v1/events/trigger' \
--header 'Authorization: ApiKey <API_KEY>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "event-reminder",
"to": {
"subscriberId": "6500f94b1a7614493d8408cc"
},
"payload": {
"title": "Title",
"body": "Body23",
"link": "https://skylight.org",
"icon": "https://skylight.org/favicon.png"
},
"overrides": {
"fcm": {
"type": "data"
}
}
}'
curl --location --request POST 'https://api.novu.co/v1/events/trigger' \
--header 'Authorization: ApiKey <API_KEY>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "event-reminder",
"to": {
"subscriberId": "6500f94b1a7614493d8408cc"
},
"payload": {
"title": "Title",
"body": "Body23",
"link": "https://skylight.org",
"icon": "https://skylight.org/favicon.png"
},
"overrides": {
"fcm": {
"type": "data"
}
}
}'
Pawan Jain
Pawan Jain10mo ago
Hi @cmendoza Thanks for sharing the curl request. I don't think there is any issue in curl @paweltymczuk Can you please check this transactionId internally f2251a9e-c4ed-4c4a-9969-478dd7dffcb3
Paweł T.
Paweł T.10mo ago
hey @cmendoza 👋 From what I see the jobs for that transaction were not created, meaning messages not sent for the workflow. But I see that today you've triggered the template successfully 😉 are you still facing some problems?
cmendoza
cmendoza10mo ago
Yeah, my recent requests have been successful. But that particular request stood out and a little concerning because we were returned a transactionId but there's no trace of it in the system. Have you had similar incidents like this in the past? I'm wondering what could have caused it.
Novu_Bot
Novu_Bot10mo ago
@cmendoza, you just advanced to level 1!
Paweł T.
Paweł T.10mo ago
I would have to dive deeper into the code and this case to understand what might be wrong here, from the first sight it's hard to tell. 🤷‍♂️ I'll let you know 😉
cmendoza
cmendoza10mo ago
Thanks appreciate it!
Want results from more Discord servers?
Add your server
More Posts
Self Hosting on Kubernetes with runAsNonRoot: true optionI would like to host Novu on a Kubernetes environment using the Novu Docker images. I am using the How do I send a notification based on subscriber activity?Essentially I want to create a workflow where a push notification is sent to a subscriber. And then What is the best way to remove a single deviceToken from a subscriber that has several deviceTokensHi, I just want to confirm what is the current best way to delete only specific tokens from the arraWhat is a Template in Subscriber preference and where can I get the template IDI am using Self hosted version of Novu with .net I am trying to set Notification preferences for a sNetwork error while registeringHello. I have problem with self-hosted service. When I'm trying to register UI shows Network Error.I am facing the similar issue as mentioned in the github issue,CORS fails when we try to register the user If I do the same curl request in postman then it is worSubscriber agnostic notificationHello, I have this simple workflow, where I need to 1. send an email to the subscriber (this is easWhat is the max limit for the notificationTemplates.getAll() API?For the node sdk API novu.notificationTemplates.getAll() we can pass in a page size and a limit. whaSending notifications without subscribersWe have a workflow where we need to: - send an external email to the user - send a slack notificatioSome bugs and questions1. Cant make selection when the + is at the bottom 2. I choose to use the font family Roboto in the