Closed oleggtro closed 1 month ago
Hey @oleggtro. The prepeared statement issue tells me that the DB connection string is not correctly placed. You need to connect to supabase pooler in transaction mode.
As for the migrations, those use a different connection string than the app, due to how supabase and prisma work. Here is one example of an issue describing it: https://github.com/prisma/prisma/issues/11643
Oh sorry, so it was indeed an error on my end.
My DATABASE_URL was indeed malformed, I was missing the pgbouncer=true
at the end.
Thanks!
@oleggtro yeah that basically tells supavisor to simulate the pgBouncer prepared statements. Glad its resolved.
Contact Details
ole@oleggtro.com
What happened?
I am trying to set up a local instance of shelf for evaluation purposes for my company and running into the same issue every time. The SMTP setup is correct (as the emails get delivered successfully). I also believe that the DB connection succeeds as there is no other mention of it and migrations also get applied successfully.
Is this a user error or a real bug?
Steps to reproduce:
What is the expected behaviour?
Take the (correct) OTP Token and confirm the user account.
Version
Self-hosted
What browsers are you seeing the problem on?
Chrome, Safari
Relevant log output