I get this error when I run “npm run develop” command.
How does your config file look or your database.js file look.
Try console log out the config to see that it actually get’s the info you are thinking it is
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,
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 .
There we go then glad to hear you fixed it.