You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm migrating a backend node express project for using TypeScript and pgtyped, but right now I'm unable to make it to work with my postgresql 16.1 database. The project and env vars work without problems locally. I can manually connect to the database without issues in dbeaver. Pgtyped is reading the env vars properly, so the only thing I found so far could be to the compatibility with scarm-sha-256 authentication? I read that this was supported already. The error received is just: Connection failed: password authentication failed for user "postgres"
If I look at the logs in the database,I can see the following, so it is already allowing connections from all hosts but with scram-sha-256 only:
"error_severity":"FATAL","sql_state_code":"28P01","message":"password authentication failed for user \"postgres\"","detail":"Connection matched file \"/var/lib/postgresql/data/pgdata/pg_hba.conf\" line 25: \"host all all all scram-sha-256\""
I realized that if I try to print pgtyped version it always shows 1.0.0, maybe this is the reason, but I have latest version installed I think: npx pgtyped --version
1.0.0
I tried reinstalling it multiple times, and forcing latest 2.4.2 version and it always returns version 1.0.0
Describe the bug
I'm migrating a backend node express project for using TypeScript and pgtyped, but right now I'm unable to make it to work with my postgresql 16.1 database. The project and env vars work without problems locally. I can manually connect to the database without issues in dbeaver. Pgtyped is reading the env vars properly, so the only thing I found so far could be to the compatibility with scarm-sha-256 authentication? I read that this was supported already. The error received is just:
Connection failed: password authentication failed for user "postgres"
If I look at the logs in the database,I can see the following, so it is already allowing connections from all hosts but with scram-sha-256 only:
"error_severity":"FATAL","sql_state_code":"28P01","message":"password authentication failed for user \"postgres\"","detail":"Connection matched file \"/var/lib/postgresql/data/pgdata/pg_hba.conf\" line 25: \"host all all all scram-sha-256\""
This is my current pgtyped.config.cjs
The text was updated successfully, but these errors were encountered: