Connection Error

Hope Everyone is fine.
Basically I am not able to run the application please help me out.
When I am using the command “npm start”, I am getting this error.
“MongoParseError: URI malformed, cannot be parsed”
Please note that I have already command “npm install”, to install all the dependencis and node package manager.

Your early response on above subject will be highly appreciable.

Thanks in advance

Hey @Muhammad_Fakhar_E_89003

Sounds like a bad connection string to the cluster. Have you followed the instructions outlined in the Ticket: Connection from Chapter 1? It goes over how to create the .env and set the variables inside.

1 Like

yes followed, but not getting good results

Hi @Muhammad_Fakhar_E_89003,

Please share the connection string and the file contents of .env file.



Did you solve this issue? I am in the same situation. Could you please give me some advice?

Thank you!

yes it is solved
changed the file name of env from “dotenv_windows or linux” to “.env” only
hope this will resolved your issue as mine

Yes.It worked. Thank you very much!

1 Like