Clients are listening to specific event types (i.e. INSERT/UPDATE/DELETE) but when there's a Error 400: Bad Request, no primary key or 401: Unauthorized the payload is:
(
null, -- wal
true, -- is_rls_enabled
[...], -- subscription_ids,
array['Error 400: Bad Request, no primary key'] -- errors
)::realtime.wal_rls;
Realtime has no way of knowing what type of database change it was so there's no way to properly broadcast to clients.
Summary
Clients are listening to specific event types (i.e.
INSERT
/UPDATE
/DELETE
) but when there's aError 400: Bad Request, no primary key
or401: Unauthorized
the payload is:Realtime has no way of knowing what type of database change it was so there's no way to properly broadcast to clients.
Request
Return payload: