I can't connect the project with the mongo database

@valeryramirez maybe i’ve found the problem which is why we get != results, you added the MONGO_URI secret surrounded by quotes, remove them, it should look like this:
https://replit.com/@vrami/boilerplate-mongomongoose#myApp.js no quotes

I’ve found this out by adding quotes to the string, and then using console.log(mySecret) and it returns this weird parsing:

MongoParseError: Invalid connection string etc

Also, I see that you put quotes here

that’s not correct, remove the "

1 Like

@anon22924398 thank you so much, that was exactly the problem. Once I erased the " then the connection was stablished.

Again thank you so much.

1 Like

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