-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 2.0.47
-
Component/s: None
-
Environment:ubuntu 14.04, node 0.10, mongodb 3.07
-
Empty show more show less
I re-created a minimalistic example that produces the problem:
var mongoDB = require('mongodb');
var randomIdentifier = 'Demo'+Math.random().toString(36).slice(-8);
try
{
mongoDB.MongoClient.connect("mongodb://localhost:27017/"+randomIdentifier,
, function(err, db) {
if(err)
db.close(function(err, result) {
if(err)
db.createCollection('nonexistent',
{'w':1} , function(err, collection) {
if(err)
else
{ console.log('or here'); } })
});
});
}
catch(err)