Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mongo database connection timeout with 0.2.10 #54

Open
svengau opened this issue Nov 18, 2015 · 1 comment
Open

Mongo database connection timeout with 0.2.10 #54

svengau opened this issue Nov 18, 2015 · 1 comment

Comments

@svengau
Copy link

svengau commented Nov 18, 2015

Hi,

with longjohn 0.2.10, this code doesn't work anymore, i.e the callback is never called. Works fine with 0.2.9.

var mongo = require('mongodb');
var longjohn = require('longjohn');

console.log("Connecting...");
mongo.connect("mongodb://127.0.0.1:27017/dev", function (err, db) {
  if (err) {
    console.log(err);
  }
  console.log("We are connected");
});

Environment:

  • Mac OSX El capitan,
  • Node 4.1.1 (also reproduced with 4.2.2)
  • "mongodb": "^1.4.39"
  • Mongo 3.0.3 (also reproduced with 2.06)

thanks,

@CamHenlin
Copy link

+1, Having the same issue with longjohn versions 0.2.9 (and maybe earlier), 0.2.10, and 0.2.11:

  • Ubuntu 14.04
  • node v0.12.7
  • mongodb 1.4.38 (via mongoose 3.8.37)

However, longjohn works using:

  • Ubuntu 14.04
  • node v0.12.7
  • mongodb 2.1.2 (via mongoose 4.3.4)

I'm assuming the incompatibility exists with the mongodb 1.x release branch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants