Unable to connect to my mlab database if I am behind a proxy server.
Any idea how to achieve this? I already googled and did not find the answer ...
Here is my link:
mongoose.connect(config.db.URI); var db = mongoose.connection; db.on('error', function(){ throw new Error('unable to connect to database at ' + config.db.URI); });
source share