This repository has been archived by the owner on May 13, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 69
RealtimeSubscription Unhandled Exception: type 'Null' is not a subtype of type 'List<dynamic>' in type cast #64
Labels
bug
Something isn't working
Comments
Here is a fix: final primaryKeys = (json['columns'] as List)
.where((e) => (e['flags'] as List?)?.contains('key') == true)
.map((e) => e['name'] as String)
.toList(); |
@dshukertjr what do you think? |
This comment has been minimized.
This comment has been minimized.
Sorry for the late reply! @offline-first Yup, your fix looks amazing! Would you like to open a PR this repo? |
@offline-first BTW, I wonder why |
@dshukertjr PR is on the way create table public.messages (
id bigint generated by default as identity primary key,
inserted_at timestamp with time zone default timezone('utc'::text, now()) not null,
message text,
user_id uuid references public.users not null,
channel_id bigint references public.channels on delete cascade not null
);
comment on table public.messages is 'Individual messages sent by each user.'; |
@dshukertjr Realtime Security (WALRUS) no longer sends |
I'm watching this. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug report
When I listen to realtime events, and insert data to table, the
supabase_realtime_payload.dart
throws this exception.Reproduce
Backend: https://github.com/supabase/supabase/tree/master/examples/nextjs-slack-clone
Flutter
plugin version:
The text was updated successfully, but these errors were encountered: