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".
  • DrainTimeoutError. close() 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.