Connection error in mongo shell

mongo “mongodb://cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,cluster0-shard-00-02-jxeqq.mongodb.net:27017/video?replicaSet=Cluster0-shard-0” --authenticationDatabase admin --ssl --username m001-student --password m001-mongodb-basics
2019-12-15T00:21:11.966+0530 E QUERY [js] uncaught exception: SyntaxError: unexpected token: string literal :
@(shell):1:6

Please help me to solve this issue

1 Like

There s no issue with your command.I can connect fine

You are getting syntax error as you might be already at mongo prompt and running the command
Please exit from mongo and run the command at your os prompt i,e Windows cmd or your Vagrant Unix prompt

1 Like

Hi @Gautam_73958,

As I can see, you are making good progress in the course and I hope you found the post #3 made by @Ramachandra_37567 helpful . However, if the issue still persists then please feel free to get back to us.

Thanks,
Shubham Ranjan
Curriculum Support Engineer