Could not connect to MongoDB Cluster from Mongo Shell

I am able to connect from Compass. But from Mongo Shell frequently it gives this error. I have already whitelisted the IP.

D:\M001>mongo “mongodb+srv://” --username m001-student -p m001-mongodb-basics
MongoDB shell version v4.2.0
connecting to: mongodb://,,

*** It looks like this is a MongoDB Atlas cluster. Please ensure that your IP whitelist allows connections from your network.

2019-09-09T06:38:21.489+0530 E QUERY [js] Error: Authentication failed. :
2019-09-09T06:38:21.507+0530 F - [main] exception: connect failed
2019-09-09T06:38:21.508+0530 E - [main] exiting with code 1

I am able to connect with your command
May be temporary network issues or some invalid characters getting introduced while cut & paste?
Please try again with and without quotes

mongo “mongodb+srv://” --username m001-student -p m001-mongodb-basics
MongoDB shell version v4.0.5
connecting to: mongodb://,,

Error while trying to show server startup warnings: user is not allowed to do action [getLog] on [admin.]
MongoDB Enterprise Cluster0-shard-0:PRIMARY> db
MongoDB Enterprise Cluster0-shard-0:PRIMARY> show dbs
admin 0.000GB
local 4.875GB

Thank you. It was problem with my internet connection. Used a different connection and it worked. Thanks.