kunde
kunde

Reputation: 431

Error connecting to database in Node

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

Answers (1)

Giuseppe Pes
Giuseppe Pes

Reputation: 7912

the db process wasn't running. When you restart the machine the db was restarted as well.

Upvotes: 1

Related Questions