i am using special character $ in my Mongodb password.
this is how my connector looks like
{
"name": {
"host": "using ip here",
"port": 27017,
"url": "",
"database": "",
"password": "example123$",
"name": "name",
"user": "username",
"connector": "mongodb"
}
}
Error Cannot initialize connector "mongodb": Password contains an illegal unescaped character
is there a way i can use special character in Loopback connector.
Try with
%24
. ieexample123%24
%24
is the encoded value of $
const enc = encodeURIComponent('$')
console.log('Encoded Value :', enc)