supabase-csharp icon indicating copy to clipboard operation
supabase-csharp copied to clipboard

InitializeAsync dead lock when `AutoConnectRealtime = true`

Open Arktische opened this issue 1 year ago • 2 comments

Bug report

Describe the bug

InitializeAsync never returns when set AutoConnectRealtime = true

To Reproduce

             Supabase.Client? cli;
            Task.Run(async () =>
            {
                var options = new Supabase.SupabaseOptions
                {
                    AutoConnectRealtime = true,
                    AutoRefreshToken = true
                };
                var client = new Supabase.Client(url,key, options);
                await client.InitializeAsync();
                cli = client;
            }).Wait(); // stuck here, never return

Expected behavior

Should return

System information

  • OS: macOS
  • .NET 8.0
  • ARM64

Arktische avatar Oct 08 '24 04:10 Arktische

@Arktische do you have a work around solution for this?

ayush-lal avatar Dec 12 '24 12:12 ayush-lal

@Arktische do you have a work around solution for this?

@ayush-lal I just remove the code AutoConnectRealtime = true, and it works fine

Arktische avatar Dec 12 '24 14:12 Arktische