Reputation: 431
I was working on a project using Node with a PostgresDB. Everything was fine, but then it starts throwing an "Error: connect ECONNREFUSED". I didn't change anything regarding my DB connection, so I decided to restart the machine, and the error was gone. Does anyone knows what can cause this error?
Upvotes: 0
Views: 200
Reputation: 7912
the db process wasn't running. When you restart the machine the db was restarted as well.
Upvotes: 1