gerald-lindsly / rmongodb

R driver for MongoDB
http://cnub.org/rmongodb.ashx
Apache License 2.0
83 stars 44 forks source link

mongo.create does not resolve hostnames #6

Closed ssimeonov closed 11 years ago

ssimeonov commented 12 years ago

mongo.create will fail with error code 2 if a host name is provided instead of an IP address.

> m <- mongo.create("127.0.0.1")
> m <- mongo.create("localhost")
Unable to connect to localhost:27017, error code = 2
gerald-lindsly commented 11 years ago

Due to the upgrade to mongo-c-driver 0.7, mongo.create() accepts host names now.

bhavnavb commented 9 years ago

even if the ip address is given instead of hostname the same error ooccurs

bhavnavb commented 9 years ago
> m<-mongo.create("127.0.0.1")
Unable to connect to 127.0.0.1:27017, error code = 2