Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-312

new GridStore fails

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.0.6
    • Affects Version/s: 2.0.5
    • Component/s: None
    • Labels:
    • Environment:
      node v0.10.32,
      os x yosemite
      mongodb@2.0.5

      I tried different example snippets for gridfs from http://mongodb.github.io/node-mongodb-native/2.0/tutorials/streams/ and all results in following error. Let me know if you can reproduce. Particularly using example 'Streaming a File into GridFS':

      /Users/athli/Devel/gridFS/node_modules/mongodb/lib/mongo_client.js:386
      throw err
      ^
      TypeError: Cannot read property 'w' of undefined
      at _getWriteConcern (/Users/athli/Devel/gridFS/node_modules/mongodb/lib/gridfs/grid_store.js:1301:22)
      at new GridStore (/Users/athli/Devel/gridFS/node_modules/mongodb/lib/gridfs/grid_store.js:124:23)
      at /Users/athli/Devel/gridFS/index.js:11:21
      at /Users/athli/Devel/gridFS/node_modules/mongodb/lib/mongo_client.js:383:11
      at process._tickCallback (node.js:419:13)

            Assignee:
            christkv Christian Amor Kvalheim
            Reporter:
            jarda.kotesovec Jarda Kotesovec
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: