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

Keep getting WEBSOCKET errors

Open tiger2014 opened this issue 2 years ago • 0 comments

My winform project was stucked many times and get Websocket error

Describe the bug

I used var result2 = await _client.From<KZG01>() .Select(s => new object[] { s.Original_URL }) .Order(x => x.Id, Ordering.Descending) .Limit(1000) .Get();

and var response = await _client.From<KZG01>().Insert(kzg);

to query and insert into supabase. But I keep getting WEBSOCKET errors and the winform app will be stcked when the error. the error in the log is like:

`2023-10-15 00:00:37.4985| Websocket.Client.WebsocketClient| [WEBSOCKET CLIENT] Error while listening to websocket stream, error: 'The remote party closed the WebSocket connection without completing the close handshake.'

2023-10-15 00:00:37.4985| Websocket.Client.WebsocketClient| [WEBSOCKET CLIENT] Error while stopping client, message: 'The remote party closed the WebSocket connection without completing the close handshake.'

2023-10-15 00:00:37.4985| Websocket.Client.WebsocketClient| [WEBSOCKET CLIENT] Error while listening to websocket stream, error: 'The remote party closed the WebSocket connection without completing the close handshake.'

2023-10-15 00:00:38.5850| Websocket.Client.WebsocketClient| [WEBSOCKET CLIENT] Error while listening to websocket stream, error: 'The remote party closed the WebSocket connection without completing the close handshake.' ` this error was caused by supabase?

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Go to '…'
  2. Click on '…'
  3. Scroll down to '…'
  4. See error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

System information

  • OS: [e.g. macOS, Windows]
  • Browser (if applies) [e.g. chrome, safari]
  • Version of supabase-js: [e.g. 6.0.2]
  • Version of Node.js: [e.g. 10.10.0]

Additional context

Add any other context about the problem here.

tiger2014 avatar Oct 17 '23 16:10 tiger2014