Closed mshafieluru closed 10 years ago
any sugestions ?
Please update your code to 0.5.2 . If you are still experiencing issues, please provide a unit test.
same problem in 0.5.3
Thanks for the update. Please provide a unit test.
I forgot to update it. I solved it by retaining the mongdb, gridfs-stream of node-modules.
However, i have upgraded mongodb to latest i.e. 2.6.4 64-bit version
and it works like charm. Upgrading MongoDB solved it. Had nothing to do with node.js moduels
I am uploading a file to mongodb gridfs using your example. I am using 64-bit mongodb on ubuntu with node.js 0.10.29
I am continuously getting following error and the node.js server script stops immediately. Sometimes the file gets uploaded and then it stops, and sometimes it wont allow you to upload. I am using node formidable to upload a file.
/home/user/node_modules/mongodb/lib/mongodb/connection/base.js:245 throw message; (/home/user/node_modules/mongodb/lib/mongodb/connection/server.js:436:20)
at emit (events.js:95:17)
at null. (/home/user/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:201:13)
at emit (events.js:98:17)
^ MongoError: exception: chunks out of order at Object.toError (/home/user/node_modules/mongodb/lib/mongodb/utils.js:114:11) at /home/user/node_modules/mongodb/lib/mongodb/db.js:1131:31 at /home/user/node_modules/mongodb/lib/mongodb/db.js:1846:9 at Server.Base._callHandler (/home/user/node_modules/mongodb/lib/mongodb/connection/base.js:445:41) at /home/user/node_modules/mongodb/lib/mongodb/connection/server.js:478:18 at MongoReply.parseBody (/home/user/node_modules/mongodb/lib/mongodb/responses/mongo_reply.js:68:5) at null.
Please suggest solution