Keep getting WEBSOCKET errors

Open
#117 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
csharp
Domain
api

Research direction

Start by reviewing the reported From() query and Insert(kzg) calls alongside the captured WebSocket.Client errors. Reproduce the failure in the stated WinForms context, then identify whether the client or Supabase closes the connection and define the required error-handling behavior. No source files or tests are named in the issue.

Written by the indexing model from the issue text.

Description

bug

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.

Dominant language
C#
Stars
701
Forks
106
Avg merge
16h 35m
Merged PRs (30d)
45

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from supabase/supabase-csharp

All issues in supabase/supabase-csharp

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.