"@" character in password throws "The connection string is not Valid" exception.

48 views
Skip to first unread message

Ahammed Unni V P

unread,
Sep 8, 2017, 4:59:03 PM9/8/17
to mongodb-user
Hi, 

I tried to connect to MongoDB using a connection string copied from the Atlas cluster dashboard. But it throws the exception "The connection string is not Valid". 

Later I found out, it was due to a "@" character in my password. Solved the issue by changing my password.

Sharing this for people who may encounter this.




TheNilesh

unread,
Sep 9, 2017, 6:53:57 AM9/9/17
to mongodb-user
Hello Ahmed,
You should escape '@' as %40. 

Thanks
Reply all
Reply to author
Forward
0 new messages