N
Novu16mo 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
cmendozaOP16mo 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 Jain16mo ago
Hi @cmendoza Can you please share curl request you used to trigger above event (notification)
cmendoza
cmendozaOP16mo 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 Jain16mo 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.16mo 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
cmendozaOP16mo 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_Bot16mo ago
@cmendoza, you just advanced to level 1!
Paweł T.
Paweł T.16mo 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
cmendozaOP16mo ago
Thanks appreciate it!
Want results from more Discord servers?
Add your server