PostHog.Emails.Error — posthog v2.23.4
PostHog. Emails. Error exception (posthog v2.23.4) Copy Markdown View Source PostHog did not queue the email or return its status, or the SDK could not tell whether it did. Branch on :code , PostHog's stable error code, or on :name , a coarse category of the failure. The message never contains the secret key or the request body. Fields :name - the category, one of name/0 . :code - PostHog's error code, such as "quota_limited" or "recipient_suppressed" , or an SDK code: "missing_secret_key" , "missing_app_host" , "client_disabled" , "client_closed" , "network_error" , "api_error" (an answer without a code), "unexpected_error" , "too_many_attachments" or "message_too_large" for files that make the email too large, which the SDK checks before any request and PostHog checks again, "attachment_upload_failed" when the storage refused an upload, or an "invalid_*" code for an option the SDK refused before any request. :message - human-readable message. :status_code - the HTTP status, when PostHog answered, or the storage's for "attachment_upload_failed" . :why and :fix - why PostHog refused the email and how to fix it, when it said. :docs_url - a link to the docs for the error, when PostHog sent one. :field - the option the error is about, such as "to" . :retry_after_ms - how long PostHog, or the storage, asked the client to wait before it sends again.
Summary Types name() A coarse category of the failure. t() An email request that failed. Types name() @type name() :: :validation_error | :missing_api_key | :invalid_permission | :not_found | :concurrent_idempotent_requests | :invalid_idempotent_request | :rate_limit_exceeded | :monthly_quota_exceeded | :service_unavailable | :application_error A coarse category of the failure. t() @type t() :: %PostHog.Emails.Error{ __exception__: true, code: String.t (), docs_url: String.t () | nil, field: String.t () | nil, fix: String.t () | nil, message: String.t (), name: name (), retry_after_ms: non_neg_integer () | nil, status_code: pos_integer () | nil, why: String.t () | nil } An email request that failed.