Timeline for MongooseServerSelectionError: connect ECONNREFUSED ::1:27017, connect ECONNREFUSED 127.0.0.1:27017
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 5 at 11:58 | comment | added | Wernfried Domscheit |
Have a look at the MongoDB logfile. Location of logfile is defined in Mongo config file. Location of config file you get with in Powershell with (Get-CimInstance Win32_Service -Filter 'Name = "mongoDB"').PathName (name may differ)
|
|
Jul 5 at 8:34 | comment | added | Furkan YIlmaZ | In addition to the comment above check your firewall settings | |
Jul 5 at 7:22 | comment | added | Subha |
Which version of mongoose you are using? Options are no longer needed in Mongoose 6.x.You have defined mongoose connection code but have not executed the one in the main file. You can directly execute the connection code in your main file. Also check in your local machine by running mongod if MongoDB is running in your machine. check all these and let me know
|
|
Jul 5 at 7:16 | history | edited | Harshit Singh | CC BY-SA 4.0 |
added 16 characters in body
|
Jul 5 at 7:16 | history | edited | Harshit Singh | CC BY-SA 4.0 |
added 20 characters in body
|
S Jul 5 at 7:14 | review | First questions | |||
Jul 5 at 17:26 | |||||
S Jul 5 at 7:14 | history | asked | Harshit Singh | CC BY-SA 4.0 | created from wizard |