Exception: StreamChat::InvalidWebhookError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/stream-chat/errors.rb

Overview

Raised by webhook verify/parse helpers when the HMAC does not match or a gzip/base64/JSON envelope cannot be decoded. The message identifies which failure mode fired; the class-level constants below are the canonical strings for callers that prefer exact-match filtering over substring.

Constant Summary collapse

SIGNATURE_MISMATCH =
'signature mismatch'
INVALID_BASE64 =
'invalid base64 encoding'
GZIP_FAILED =
'gzip decompression failed'
INVALID_JSON =
'invalid JSON payload'