Hi @Mayank_Saini,
The error indicates that the connection to 127.0.0.1:27017 has been closed, and the application is not able connect with your MongoDB server.
- Could you please confirm that your MongoDB server is running and accessible. You can do this by running
mongodin your terminal or command prompt. - Also, make sure that your MongoDB server’s configuration file (
mongod.conf) is properly configured to accept connections from your application.
I hope it helps!
Best regards,
Kushagra