Fix: Username containing an unescaped at-sign Issue [MongoDB]

Getting issue when connecting to your MongoDB using mongoose or some other ORM?

wp content uploads 2018 05 fix username containing an unescaped at sign issue 300x92

Well, it turns out your password has @ or another unsupported character in it.

We need to escape that password. In our case, it’s @ in the password.

Just replace @ sign to %40 (in your password string)

Before

mongodb://AshikNesin:xyzXi86@w@example.com:25010/ashiks-assistant

After excaping

mongodb://AshikNesin:xyzXi86%40w@example.com:25010/ashiks-assistant

That’s all :)