(mflix) C:\Users\hp>mongo “mongodb+srv://mflix-ybrie.mongodb.net/sample_mflix” --username m220student
MongoDB shell version v4.0.10
Enter password:
connecting to: mongodb://mflix-shard-00-00-ybrie.mongodb.net.:27017,mflix-shard-00-01-ybrie.mongodb.net.:27017,mflix-shard-00-02-ybrie.mongodb.net.:27017/sample_mflix?authSource=admin&gssapiServiceName=mongodb&replicaSet=mflix-shard-0&ssl=true
2019-07-30T18:07:15.287+0530 I NETWORK [js] Starting new replica set monitor for mflix-shard-0/mflix-shard-00-00-ybrie.mongodb.net.:27017,mflix-shard-00-01-ybrie.mongodb.net.:27017,mflix-shard-00-02-ybrie.mongodb.net.:27017
2019-07-30T18:07:17.212+0530 W NETWORK [ReplicaSetMonitor-TaskExecutor] Unable to reach primary for set mflix-shard-0
2019-07-30T18:07:17.213+0530 I NETWORK [ReplicaSetMonitor-TaskExecutor] Cannot reach any nodes for set mflix-shard-0. Please check network connectivity and the status of the set. This has happened for 1 checks in a row.
2019-07-30T18:07:19.968+0530 W NETWORK [js] Unable to reach primary for set mflix-shard-0
2019-07-30T18:07:19.969+0530 I NETWORK [js] Cannot reach any nodes for set mflix-shard-0. Please check network connectivity and the status of the set. This has happened for 2 checks in a row.
2019-07-30T18:07:22.687+0530 W NETWORK [js] Unable to reach primary for set mflix-shard-0
2019-07-30T18:07:22.687+0530 I NETWORK [js] Cannot reach any nodes for set mflix-shard-0. Please check network connectivity and the status of the set. This has happened for 3 checks in a row.
2019-07-30T18:07:25.450+0530 W NETWORK [js] Unable to reach primary for set mflix-shard-0
2019-07-30T18:07:25.451+0530 I NETWORK [js] Cannot reach any nodes for set mflix-shard-0. Please check network connectivity and the status of the set. This has happened for 4 checks in a row.
2019-07-30T18:07:28.139+0530 W NETWORK [js] Unable to reach primary for set mflix-shard-0
2019-07-30T18:07:28.139+0530 I NETWORK [js] Cannot reach any nodes for set mflix-shard-0. Please check network connectivity and the status of the set. This has happened for 5 checks in a row.
2019-07-30T18:07:30.893+0530 W NETWORK [js] Unable to reach primary for set mflix-shard-0
2019-07-30T18:07:30.893+0530 I NETWORK [js] Cannot reach any nodes for set mflix-shard-0. Please check network connectivity and the status of the set. This has happened for 6 checks in a row.
*** It looks like this is a MongoDB Atlas cluster. Please ensure that your IP whitelist allows connections from your network.
I am getting this for the past few hours. Tried every possible way to solve this, but cannot. Please Help