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 )