Getting error while using Postgresql only
This is how I have set up the database:
I used better auth cli to generate and migrate the tables to postgresql.
And when I make an api request to register, I get this error.
I did use the default public schema. so i'm not sure why am i getting this error.
Here is the generated tables:
            List of relations
 Schema |     Name     | Type  |  Owner
--------+--------------+-------+---------
 public | account      | table | testing
 public | session      | table | testing
 public | user         | table | testing
 public | verification | table | testing
7 Replies
can you make sure your database url is correct? (For example make sure you don't append anything after the connection string as that will link to a new database directory in pg - unless this is intentional for you)
It's correct. That's why better auth CLI successfully migrates the tables. And I have manually checked the database too. The tables exist inside the database.
I didn't append anything either.
Just started a new project, followed our installation setup, ran migrations, everything seems to work for me.
I might need more information on your setup if you could provide.
while learning, I used sqlite3. Everything worked fine with it. But with postgresql, I'm facing this issue.
Are you using docker to start the pg server? 
I can provide you how I set mine up so that maybe you can get an idea if there is any differences.
These three combined works on my end



I am using the postgresql app to run the database servers. I'm not using docker.
could this be the reason?