Error: connect ECONNREFUSED when connecting to a custom database

I’m trying to connect my Postgres database into my application but getting the following error.
I have made my database using Heroku and it looks like this (I have changed a few characters here for privacy)

my script files look like this

and this is my error on save and try

can someone please help me?

1 Like

@voletirajkumar have you managed to get your issue resolved?