(D:\Node-Jonas\Node-Projects\server.js:21:4)Īt Module._compile (internal/modules/cjs/loader.js:1138:30)Īt Object.Module._extensions.js (internal/modules/cjs/loader.js:1158:10)Īt Module.load (internal/modules/cjs/loader.js:986:32)Īt Function.Module._load (internal/modules/cjs/loader.js:879:14)Īt Function.executeUserEntryPoint (internal/modules/run_main.js:71:12)Īt internal/main/run_main_module. Press Windows + R to open Run, type appwiz.cpl in the text field, and click OK. Select Turn off Windows Defender Firewall (not recommended) under both Private network settings and Public network settings, and then click on OK. Make sure your current IP address is on your Atlas cluster's IP whitelist: Īt (D:\Node-Jonas\Node-Projects\node_modules\mongoose\lib\connection.js:828:32)Īt nnect (D:\Node-Jonas\Node-Projects\node_modules\mongoose\lib\index.js:335:15)Īt Object. Now, click on Turn Windows Defender Firewall on or off. Reason is that you're trying to access the database from an IP that isn't whitelisted. ![]() While trying to connect with mongodb i’m getting this error : MongooseServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |