Node SDK · Errors

The SDK exports three error classes:

  • HttpError — non-2xx from the ingestion endpoint. Check statusCode, body, and transient (5xx + 429 are flagged for retry).
  • BufferFullError — overflow when overflowPolicy: "error".
  • DrainTimeoutErrorclose() exceeded drainTimeout with pending events.

Minter calls reject with a plain Error on client-side validation failures (invalid tenantId, malformed wildcard), MinterError on HTTP 400/401/404, or a transport error on network failure.