-
Notifications
You must be signed in to change notification settings - Fork 373
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
Cannot signup user, missing identities
table
#1265
Comments
After some experimentation, it seems that everything works as expected once I add my |
This is happenint to be as well, where did you set the prefix? @gmisail |
@gmisail this is what postgres logs are
|
Only reason failing is because the ORM does not generate auth.identities with auth prefix SELECT identities.created_at, identities.id, identities.identity_data, identities.last_sign_in_at, identities.provider, identities.updated_at, identities.user_id FROM auth.identities AS identities WHERE email = 'jonathan' |
Create a custom connection string with a custom search path, that's the fix. |
Yeah that was the fix, thank you for the help. |
@Jonatthu @gmisail could you elaborate what exactly you mean with a custom connection strign with a custom search path? these are my env vars
Btw. it took me soo long to figure out that I need to put |
I had same issue, until I notice some configuration are not using PostgreSQL User |
For posterity, the fix the following |
Bug report
I am deploying
gotrue
using Docker Compose and I am having some trouble signing up. I initially used the hosted instance on Supabase and that worked fine, which is why I'm confused why this is causing me problems. It looks like when looking up identities on signup, it is ignoring the schema (DB_NAMESPACE
) that I have defined, causing the query to fail since the table does not exist.Describe the bug
We are currently trying to look up user identities in the
identities
table, however it is actually located inauth.identities
.Do these queries not respect the
DB_NAMESPACE=auth
environment variable that I have set? The migrations are clearly applied (as pictured in Screenshots) however it does not look like it's querying with this prefix in mind.To Reproduce
gotrue v2.99.0
& PostgreSQL using Docker Composeauth.signUp(...)
Expected behavior
To lookup the identities in
auth.identities
when creating a new user.Screenshots
System information
Additional context
Compose:
The text was updated successfully, but these errors were encountered: