N
Novu10mo ago
dmulligan

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
dmulligan
dmulligan10mo ago
No description
dmulligan
dmulligan10mo ago
I have not noticed an error / exception in the log files.
Pawan Jain
Pawan Jain10mo ago
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]
dmulligan
dmulligan10mo ago
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": { } }'
dmulligan
dmulligan10mo ago
3.
No description
Pawan Jain
Pawan Jain10mo ago
self host version?
dmulligan
dmulligan10mo ago
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.
Pawan Jain
Pawan Jain10mo ago
Hi @dmulligan I tried to debug and reproduce the issue on Novu Cloud But I could not reproduce
Pawan Jain
Pawan Jain10mo ago
I triggered my workflow using postman
Pawan Jain
Pawan Jain10mo ago
\
No description
dmulligan
dmulligan10mo ago
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.
Novu_Bot
Novu_Bot10mo ago
@dmulligan, you just advanced to level 5!
dmulligan
dmulligan10mo ago
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'