Exception: StreamChat::Webhook::InvalidWebhookError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/getstream_ruby/generated/webhook.rb

Overview

Raised for every webhook handling failure: signature mismatch, invalid JSON, missing/non-string type field, gzip-prefixed body that fails to decompress, invalid base64 in a queue body, or a malformed SNS envelope.

Rescue this single class for any webhook problem; filter on the message text or against the failure-mode constants below to differentiate.

Constant Summary collapse

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