node.js - Error: failed to connect to [undefined:27017] -


i error when trying connect db setup on mongolab

error: failed connect [undefined:27017] 

however, connection uri is:

'user' :  'mongodb://dbusernamestring:dbpasswordstring@ds027789.mongolab.com:27789/db1' 

so undefined come from?

as can see in the tutorial mentioned, have use url instead of user, change should be:

'url' :  'mongodb://dbusernamestring:dbpasswordstring@ds027789.mongolab.com:27789/db1' 

Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -