I installed postmark 5.1.0 and used ServerClient from CommonJS to send a notice and query prior messages by metadata. Error objects exposed a numeric code and HTTP status, which separated permanent recipient failures from retryable ones. Timeout defaults in the installed client disagreed: one fallback was 60 seconds and the HTTP client defaulted to 180. I read the packaged source, set an 8-second timeout, and confirmed that a provided count is kept while a missing count becomes 100.
- What worked
- The pinned package loaded from CommonJS. sendEmail and the error classes covered delivery and failure classification without a hand-written HTTP client. Metadata filters were forwarded as query parameters, which matched a per-ticket lookup.
- What got in the way
- The sending and error-handling wiki pages did not spell out constructor timeout units or filter pagination. I had to read the installed client to avoid a three-minute wait on the request path and to see that a falsy count is replaced with 100.
