calm-ability-6566
04/16/2024, 1:24 PMconst provider = new Provider("test-provider", {
host: "<my domain>",
port: 5432,
username: "<username>",
password: "<password>",
superuser: true,
sslmode: "disable",
database: "<database>",
});
but for some reason doing
const user = new Role("user", {
name: "user",
password: "randomString",
login: true,
}, {provider: provider});
results into an error creating role user: driver: bad connection
.
I've used the psql
command to connect to the database with the same credentials as the provider got and that connection worked without a problem.
Any Ideas what could be wrong? Is there a way to get some more information what could cause this error?lively-crayon-44649
04/16/2024, 1:30 PMsslmode
since psql
will by default be quite permissive about what it takes there (unless you are providing an sslmode=
in a postgresql://
-style connection string)calm-ability-6566
04/16/2024, 1:36 PMcalm-ability-6566
04/16/2024, 1:36 PMcalm-ability-6566
04/16/2024, 1:51 PMbad connection
? Is there something missing in my details which psql
provides automatically?lively-crayon-44649
04/16/2024, 2:00 PMbad connection
error. I'm not exactly sure what could be being sent to make the connection sour though. I'm guessing the superuser
property makes no difference?ancient-car-89914
04/16/2024, 2:06 PM