Examples Hanging problem

1 view
Skip to first unread message

Randolph

unread,
Oct 24, 2010, 10:15:51 AM10/24/10
to Mongo node .js driver
To the person working on the example problem:

Please allow me to share what I have found out so far. The problem
only occurs when the "native" bson serializer is used instead of the
js. There is an option in the Db constructor whether to set
native_parser to true or false. It is set to false by default but
almost all examples passes true. With the native_parser set to true, I
recall that it always gets stucked at
Cursor.prototype.fetchAllRecords() when I run simple.js.

If I am not mistaken, the "native" bson serializer is the one on
external-libs/bson. It also has test scripts test_full_bson.js and
test_bson.js but it seems to pass when I run them so we probably need
to add tests to it once we know the problem.

Franklin Cheung

unread,
Oct 24, 2010, 5:50:01 PM10/24/10
to mongo-node...@googlegroups.com
Hmm, I'm beginning to think that there might be more than one problem with the examples. The error I was having was that I would get this ECONNREFUSED: Could not contact DNS servers error. It works on my computer when I replace 'localhost' with '128.0.0.1' in the var host line. As for why, I have no clue.

Kristina Chodorow

unread,
Oct 25, 2010, 11:28:34 AM10/25/10
to mongo-node...@googlegroups.com
@Franklin: that sounds like a local DNS issue.  You can just use your IP, you don't have to use localhost.
Reply all
Reply to author
Forward
0 new messages