Not connecting to my MongoDB atlas

Tell us what’s happening:
Describe your issue in detail here.

I’ve added my env for Mongo URI in the replit using double quotes
Database wont connect, I get the error Invalid Connection String.
Your project link(s)


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36

Challenge: Implement the Serialization of a Passport User

Link to the challenge:


you’ve missed a “/” after “+srv:”

Nb: You are not supposed to display your db username and password in a private place

Thank you for that! It helped and will fix that.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.