You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Insert, update and delete something => see that it works
Force a disconnect using docker container restart supabase_realtime_realtime-py-example
Check output if INFO - Rejoining to: realtime:test-postgres-changes is in the output. if yes, then things continue to work as _heartbeat did the reconnect
If there is no "rejoining"-output, then _listen did the reconnect and then the realtime connection is broken forever.
Facing same issue, need this fix to get merged to production __main__ ERROR Unhandled exception in main: 'AsyncRealtimeClient' object has no attribute '_connect'
Bug report
Describe the bug
When using the example code (
test_postgres_changes
), the DELETE change triggers our function. As expected.If we have an automatic reconnect, then we can get lucky and the heartbeat might reconnect (https://github.com/supabase/realtime-py/blob/main/realtime/_async/client.py#L202-L214). Then things keep working.
But if we are unlucky, then the listen function reconnects us (https://github.com/supabase/realtime-py/blob/main/realtime/_async/client.py#L102-L105). In this case we will NEVER receive any realtime-update again.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
example
npx supabase start
docker container restart supabase_realtime_realtime-py-example
INFO - Rejoining to: realtime:test-postgres-changes
is in the output. if yes, then things continue to work as_heartbeat
did the reconnect_listen
did the reconnect and then the realtime connection is broken forever.Expected behavior
Auto-Reconnect to work.
System information
Latest supabase 2.6.8
npx supabase services
The text was updated successfully, but these errors were encountered: