Password contains unescaped characters

MongoParseError: Password contains unescaped characters
at new ConnectionString (C:\Users\HEWLETT-PACKARD\Desktop\flutter\tysBackend\node_modules\mongodb-connection-string-url\lib\index.js:90:19)

3 Likes

Try try encoding the password text with something like:

const adminPassword = encodeURIComponent( process.env.ADMIN_PASSWORD )
2 Likes

add % followed by the hexadecimal ascii representation of the special characters you use.

1 Like