Closed Slumberdac closed 2 months ago
I tried jankily adding one line locally that runs realtime.connect() which seemed to solve the issue on supabase's side (realtime then causes an AttributeError for which i've also opened an issue) but I'm sure that this is doomed to happen to others so I come to you to see if this is in fact an accident or if it turns out my project needs to be adapted (I couldn't find anything in the documentation regarding this)
i had the same problem, i think this is related to the latest releases. downgrading to supabase<2.7.0
fixed the problem.
Bug report
Describe the bug
Causing an auth event raises NotConnectedError because realtime.connect() isn't called beforehand. For example, trying to Sign up a user through supabase.auth.sign_up(credentials) makes gotrue notify subscribers of the event. Supabase listens for the event and tries to run set_auth() without connecting and then crashes the application.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
A new user should be created without rising any errors
Screenshots
If applicable, add screenshots to help explain your problem.
System information
Traceback