Ultimate

X_WEBHOOK_EVENT_UNKNOWN

Means

no event carries this id

Typical cause

the event seam answered nothing for a queued id — the delivery was enqueued outside the transaction that writes the event row, so the read raced the commit

Fix

write the event row before enqueueing its delivery, inside the same transaction, so webhook("<name>").event can never be asked for a row that is not committed yet

Listed under Outbound webhooks

This page as markdown