-
-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
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
Supabase async python client stops receiving realtime events #1034
Comments
More recently it stopped receiving events after 20 minutes of being idle. There were no errors indicating something went wrong as far as I can tell. |
also catching this error randomly sometimes:
This error occurs in the UPDATE: This does not seem to be the cause of error on my production instance. It stops receiving realtime events but no errors are caught on the 2nd UPDATE: The websocket connection error was because of using websockets-14.2. Downgrading to 13.1 fixed the issue. Please ignore this comment. |
Hi @ritikd2, did you ever find a solution or workaround for this issue? I am having the same issue. |
just restart is every 20 minutes then |
Bug report
Describe the bug
Supabase async client stops receiving real-time events after remaining idle for a few hours. As far as I can tell, this issue arises randomly after the last time the client gets realtime events correctly.
To Reproduce
Here's the code I am using:
Expected behavior
Expected: The client always receives realtime events properly.
The extra setup I've added in is to account for JWT expired / Refresh token not found errors that pop up occasionally. I have confirmed that the set up works after the JWT expired errors occur, it receives realtime events after the errors, but after a few hours of remaining idle it stops receiving events. There are no other errors that occur before it stops receiving events. The most recent case where it stopped working, the client was idle (received no new realtime events) for ~7 hours before I tested it again and it failed to receive the events.
To ensure the connection stays alive and client is refreshed, I have a task running which calls the supabase client created above every 15 seconds.
Screenshots
N/A
System information
The text was updated successfully, but these errors were encountered: