Postmark email issue
Hi guys, I've noticed an issue with sending emails using Postmark. When I setup Postmark as the email provider, I do receive the 'Checking Integration' initial email and notice it getting sent via our network correctly. However, using the very simplest workflow with a basic email, no parameters whatsoever, the email does not get sent and I instead receive the following error.
13 Replies
I have not noticed an error / exception in the log files.
Hi @dmulligan
Can you help me answering these questions?
1. Are you self hosting novu? If yes which version?
2. Can you please share your trigger code snippet?
3. Can you please share your email html content [hide or replace any private/sensitive info]
1. Self host
2. curl --location 'https://xxxxx:443/api/novu/v1/events/trigger' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer XXXXX' \
--data-raw '{
"name": "email-template-pref-test",
"to": [{
"subscriberId": "644cf8d6-bed3-4c8d-a38c-87042c04166f",
"email": "xxxxxxx",
"firstName": "John",
"lastName": "Doe"
}],
"payload": {
}
}'
3.
self host version?
0.16
What is odd, if I click the 'Test' tab in the template, and send an email it works
Just not via the API. In app notifications work just fine.
Hi @dmulligan
I tried to debug and reproduce the issue on Novu Cloud
But I could not reproduce
I triggered my workflow using postman
\
That looks exactly like what I would expected, and thanks for that review. I guess the issue is that there clearly is a problem with my env, but the error log does not report any exception at all, yet their is an error displayed within the web application.
@dmulligan, you just advanced to level 5!
Within the code, I only see a few references to 'PostmarkError' and they are around the checking of the integration. I assume in the first image I shared, the content of the json is getting populated some other way rather than the hard coded 'PostmarkError'