Strapi v4 + Postgres + heroku : Error: password authentication failed for user “…”

I get this error when I run “npm run develop” command.

How does your config file look or your database.js file look.

image

Try console log out the config to see that it actually get’s the info you are thinking it is :slight_smile:

1 Like

2 days ago , it was working just fine but today when I tried to open the app again it showed that error .
I console logged it and it showed correct information .

Ok, i know that Heroku somtimes changes the DB because its hosted on AWS.
But if it’s not hardcoded it should worked without issues,

1 Like

image
I’ve found that heroku updated the database url :
This command Is for seeing the new database url:
heroku config:get DATABASE_URL -a <your_heroku_app_name>
I changed it and now it’s Working .

1 Like

There we go then glad to hear you fixed it.

1 Like