Connection error in mongo shell

mongo “mongodb://,,” --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 :

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.

Shubham Ranjan
Curriculum Support Engineer