hello. im trying to login into mongodb using python, but i get the error
pymongo.errors.InvalidURI: Username and password must be escaped according to RFC 3986, use urllib.parse.quote_plus()., but when i use
urllib.parse.quote_plus() it gives me another error
pymongo.errors.ConfigurationError: A password is required.. But the password is inside
urllib.parse.quote_plus()! the bot doesn't see it i think. how to solve those errors? thank you!
I don't use
Just take the srv URL it generates and replace the username with the username, and the password with the password.
I've never had it ask me to use urllib.
I go to
connect on my cluster, then
connect to your application and it will give me a link like this:
Then I replace
<username> with the username and
<password> with the password I created when I made under
im using the link and i changed everything for good, but it still says i need to use
parse.quote_plus() to put password and username in there. but when i do that bot says
pymongo.errors.ConfigurationError: A password is required. i changed password with password and username with username long time ago @InvisibleOne
I'm not trying to advertise, but here's a tutorial I made a while ago with pictures and stuff
Did you follow the steps? You should create a database user and then put that username and password into the URL. Also make sure that you added access under
Network Security I believe it is.
I just set it to allow access from anywhere because the IP address for a repl can change. @DwellerIgor