- Running
node ./node_modules/express-admin/app.js express-admin-examples/config/pg/ errors with password authentication failed for user "liolio".
- The password and database setup seem to be correct, because providing the same password to
psql -W -h 127.0.0.1 express-admin-examples liolio succeeds.
- The authentication method used by Postgres seems to be the same in both cases, because providing a wrong password to psql causes the connection to fail with exactly the same logged information as that produced by express-admin.
liolio@express-admin-examples DETAIL: Password does not match for user "liolio".
Connection matched pg_hba.conf line 94: "host all all 127.0.0.1/32 md5"
Could the error stem from an outdated node-postgres library? Currently provided node-posgres connection examples don't seem to work with the library version distributed with express-admin. For example, the first code sample fails with TypeError: Pool is not a constructor.
node ./node_modules/express-admin/app.js express-admin-examples/config/pg/errors withpassword authentication failed for user "liolio".psql -W -h 127.0.0.1 express-admin-examples lioliosucceeds.Could the error stem from an outdated node-postgres library? Currently provided node-posgres connection examples don't seem to work with the library version distributed with express-admin. For example, the first code sample fails with
TypeError: Pool is not a constructor.