Connecting mongoose to node js

Hello everyone,
I am running into this error: MongoParseError: Protocol and host list are required in “mongodb+srv://” did not
(node:7724) [MONGOOSE] DeprecationWarning: Mongoose: the strictQuery option will be switched back to false by default in Mongoose 7. Use mongoose.set('strictQuery', false); if you want to prepare for this change. Or use mongoose.set('strictQuery', true); to suppress this warning.
(Use node --trace-deprecation ... to show where the warning was created)
kindly help me to work about it because it is a blocker to me

Could be due to special character in your password
Can you connect by shell?
Use a simple password or you have to escape the special characters from URI

1 Like

Yes. Source below for reference @Nalukoola_Allan_Ndaula :

OP you could also see this post for how to generate simple and secure pwd: