We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I create a realtime subscription on a table using event: '*' it works as expected on INSERT and UPDATE. On DELETE I get:
Uncaught TypeError: can't convert null to object convertChangeData transformers.ts:68 _getPayloadRecords RealtimeChannel.ts:806 _trigger RealtimeChannel.ts:663 _trigger RealtimeChannel.ts:647 _onConnMessage RealtimeClient.ts:434 _onConnMessage RealtimeClient.ts:433 decode serializer.ts:13 _onConnMessage RealtimeClient.ts:414 onmessage RealtimeClient.ts:395 setupConnection RealtimeClient.ts:395 connect RealtimeClient.ts:171 subscribe RealtimeChannel.ts:203 instance +layout.svelte:30 run utils.js:41 mount_component Component.js:47 flush scheduler.js:99 init Component.js:164 Root root.svelte:1024 createProxiedComponent svelte-hooks.js:341 ProxyComponent proxy.js:242 Proxy proxy.js:349 initialize client.js:415 _hydrate client.js:2334 start client.js:285 admin:1089 promise callback* admin:1088 transformers.ts:68:16 convertChangeData transformers.ts:68 _getPayloadRecords RealtimeChannel.ts:806 _trigger RealtimeChannel.ts:663 map self-hosted:221 _trigger RealtimeChannel.ts:647 _onConnMessage RealtimeClient.ts:434 forEach self-hosted:203 _onConnMessage RealtimeClient.ts:433 decode serializer.ts:13 _onConnMessage RealtimeClient.ts:414 onmessage RealtimeClient.ts:395 (Async: EventHandlerNonNull) setupConnection RealtimeClient.ts:395 connect RealtimeClient.ts:171 subscribe RealtimeChannel.ts:203 instance +layout.svelte:30 run utils.js:41 map self-hosted:221 mount_component Component.js:47 flush scheduler.js:99 init Component.js:164 Root root.svelte:1024 createProxiedComponent svelte-hooks.js:341 ProxyComponent proxy.js:242 Proxy proxy.js:349 initialize client.js:415 _hydrate client.js:2334 InterpretGeneratorResume self-hosted:1465 AsyncFunctionNext self-hosted:852 (Async: async) start client.js:285 admin:1089 (Async: promise callback) admin:1088
Steps to reproduce the behavior, please provide code snippets or a repository:
Create a table, enable replication and subscribe to it.
Eg:
supabase .channel("schema-db-changes") .on( "postgres_changes", { event: "*", schema: "public", table: "user_roles", }, (payload) => console.log(payload) ) .subscribe();
Payload is logged to console
If applicable, add screenshots to help explain your problem.
-Linux, tried both firefox & chrome @supabase/ssr 0.1.0 @supabase/supabase-js 2.39..7
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug report
Describe the bug
When I create a realtime subscription on a table using event: '*' it works as expected on INSERT and UPDATE. On DELETE I get:
Uncaught TypeError: can't convert null to object
convertChangeData transformers.ts:68
_getPayloadRecords RealtimeChannel.ts:806
_trigger RealtimeChannel.ts:663
_trigger RealtimeChannel.ts:647
_onConnMessage RealtimeClient.ts:434
_onConnMessage RealtimeClient.ts:433
decode serializer.ts:13
_onConnMessage RealtimeClient.ts:414
onmessage RealtimeClient.ts:395
setupConnection RealtimeClient.ts:395
connect RealtimeClient.ts:171
subscribe RealtimeChannel.ts:203
instance +layout.svelte:30
run utils.js:41
mount_component Component.js:47
flush scheduler.js:99
init Component.js:164
Root root.svelte:1024
createProxiedComponent svelte-hooks.js:341
ProxyComponent proxy.js:242
Proxy proxy.js:349
initialize client.js:415
_hydrate client.js:2334
start client.js:285
admin:1089
promise callback* admin:1088
transformers.ts:68:16
convertChangeData transformers.ts:68
_getPayloadRecords RealtimeChannel.ts:806
_trigger RealtimeChannel.ts:663
map self-hosted:221
_trigger RealtimeChannel.ts:647
_onConnMessage RealtimeClient.ts:434
forEach self-hosted:203
_onConnMessage RealtimeClient.ts:433
decode serializer.ts:13
_onConnMessage RealtimeClient.ts:414
onmessage RealtimeClient.ts:395
(Async: EventHandlerNonNull)
setupConnection RealtimeClient.ts:395
connect RealtimeClient.ts:171
subscribe RealtimeChannel.ts:203
instance +layout.svelte:30
run utils.js:41
map self-hosted:221
mount_component Component.js:47
flush scheduler.js:99
init Component.js:164
Root root.svelte:1024
createProxiedComponent svelte-hooks.js:341
ProxyComponent proxy.js:242
Proxy proxy.js:349
initialize client.js:415
_hydrate client.js:2334
InterpretGeneratorResume self-hosted:1465
AsyncFunctionNext self-hosted:852
(Async: async)
start client.js:285
admin:1089
(Async: promise callback)
admin:1088
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Create a table, enable replication and subscribe to it.
Eg:
supabase
.channel("schema-db-changes")
.on(
"postgres_changes",
{
event: "*",
schema: "public",
table: "user_roles",
},
(payload) => console.log(payload)
)
.subscribe();
Expected behavior
Payload is logged to console
Screenshots
If applicable, add screenshots to help explain your problem.
System information
-Linux, tried both firefox & chrome
@supabase/ssr 0.1.0
@supabase/supabase-js 2.39..7
The text was updated successfully, but these errors were encountered: