hi there prisma folks - any ideas why prisma clien...
# prisma-client
j
hi there prisma folks - any ideas why prisma client wouldn't be able to connect to my RDS database, but prisma studio seems to be able to just fine? it's complaining that authentication failed, but i'm able to submit changes to the database in prisma studio. i re-ran
npx prisma generate
. i'm an AWS newbie, so maybe something is set up incorrectly there? but i'm not sure what.
Copy code
Authentication failed against database server at `<postgres-url>`, the provided database credentials for `<user>` are not valid.

Please make sure to provide valid database credentials for the database server at `<postgres-url>`.
    at $w.request (/Users/jh/coprime/hq/node_modules/@prisma/client/runtime/index.js:212:54)
    at processTicksAndRejections (internal/process/task_queues.js:97:5) {
  code: 'P1000',
  clientVersion: '2.9.0',
  meta: {
    database_user: 'coprime',
    database_host: '<postgres-url>'
  }
}
m
It looks like you might be missing the username. The URL format looks like this:
<postgres://username>:password@host:port/db
You might also want to double-check that your database is publicly accessible and you've setup the security groups properly