javascript - mongodb node.js client, connect hangs -


node .js client hangs when mongo client. Connect (...) , but works on the Mongodb-client (shell command line) terminal. any clue?

  var requires Mongoclant = ('Mongodb'). Mongoquent; MongoClient.connect ('mongodb: //my.mongo.db.server.ip: 27017 / test', function (error, db) {throwing error (if mistake); console.log ("connect shows during call back ");}); // When the node loads in the shell, it hangs forever  


Comments

Popular posts from this blog

scala - Play Framework - how to bind form to a session field -

Django Celery - running scheduled tasks -

perl - 'Unquoted string ".." may clash with future reserved word' but only when package is used -