Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/41.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 在node-mongodb.native中使用Mongos时出现ReadPreference错误_Node.js_Mongodb_Node Mongodb Native - Fatal编程技术网

Node.js 在node-mongodb.native中使用Mongos时出现ReadPreference错误

Node.js 在node-mongodb.native中使用Mongos时出现ReadPreference错误,node.js,mongodb,node-mongodb-native,Node.js,Mongodb,Node Mongodb Native,我在为节点mongodb native使用MongoS时遇到了GridFS问题。我在github中打开了一个问题,但它实际上只是问题的一个症状。未被捕获的错误抱怨未设置ReadPreference。我找不到一个使用GridFS设置ReadPreference的好例子。有人在分片设置中使用过mongo驱动程序吗 他们在1.1.5驱动程序更新中修复了这个问题。这是一个bug,他们今天早上推送了一个更新。

我在为节点mongodb native使用MongoS时遇到了GridFS问题。我在github中打开了一个问题,但它实际上只是问题的一个症状。未被捕获的错误抱怨未设置ReadPreference。我找不到一个使用GridFS设置ReadPreference的好例子。有人在分片设置中使用过mongo驱动程序吗


他们在1.1.5驱动程序更新中修复了这个问题。

这是一个bug,他们今天早上推送了一个更新。