I am creating a project using Webstorm with mongoose library installed. Developing on my localhost with mongodb, my connection string was:
database: "mongodb://127.0.0.1/mydatabase"
Everything works fine. I am trying to move it to the web using a mongolad db. I changed my connection string to the following:
database: "mongodb://myuser:mypass@dsXXXXXX.mongolab.com:XXXXXX/mydatabase"
I am getting an error in webstorm:
events.js:72
throw er; // Unhandled 'error' event
^
Error: failed to connect to [chtr33:27017]
Removing the username and password does not throw the error, but of course I have no read/write permissions.