When I try to deploy and connect to DB which uses connection details from .env I’m hit with the error MongoParseError: Invalid scheme, expected connection string to start with “mongodb://” or “mongodb+srv://”. I have tried importing dotenv and removing ”, or “” and ; ]but the error persists.
New contributor
Divya Marangappanavar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.