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

'TypeError: Cannot read property \'0\' of null'

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.3
    • Component/s: None
    • Labels:
    • Environment:
      Ubuntu 13.04

      We started getting the above error all of the sudden with the following stack trace, that doesn't really seem to tell us much.

       [ 'TypeError: Cannot read property \'0\' of null',
         '  at [object Object].<anonymous> (/var/www/App/server/node_modules/mongodb/lib/mongodb/collection.js:493:22)',
         '  at [object Object].g (events.js:180:16)',
         '  at [object Object].EventEmitter.emit (events.js:98:17)',
         '  at [object Object].Base.__executeAllServerSpecificErrorCallbacks (/var/www/App/server/node_modules/mongodb/lib/mongodb/connection/base.js:315:29)',
         '  at /var/www/App/server/node_modules/mongodb/lib/mongodb/connection/repl_set/ha.js:273:22',
         '  at /var/www/App/server/node_modules/mongodb/lib/mongodb/connection/repl_set/ha.js:370:11',
         '  at /var/www/App/server/node_modules/mongodb/lib/mongodb/connection/repl_set/ha.js:352:28',
         '  at _callback (/var/www/App/server/node_modules/mongodb/lib/mongodb/db.js:670:5)',
         '  at /var/www/App/server/node_modules/mongodb/lib/mongodb/auth/mongodb_cr.js:47:13',
         '  at /var/www/App/server/node_modules/mongodb/lib/mongodb/db.js:1670:9',
         '  at Server.Base._callHandler (/var/www/App/server/node_modules/mongodb/lib/mongodb/connection/base.js:382:41)',
         '  at /var/www/App/server/node_modules/mongodb/lib/mongodb/connection/server.js:472:18',
         '  at [object Object].MongoReply.parseBody (/var/www/App/server/node_modules/mongodb/lib/mongodb/responses/mongo_reply.js:68:5)',
         '  at [object Object].<anonymous> (/var/www/App/server/node_modules/mongodb/lib/mongodb/connection/server.js:430:20)',
         '  at [object Object].EventEmitter.emit (events.js:95:17)',
         '  at [object Object].<anonymous> (/var/www/App/server/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:191:13)',
         '  at [object Object].EventEmitter.emit (events.js:98:17)',
         '  at Socket.<anonymous> (/var/www/App/server/node_modules/mongodb/lib/mongodb/connection/connection.js:384:22)',
         '  at Socket.EventEmitter.emit (events.js:95:17)',
         '  at Socket.<anonymous> (_stream_readable.js:746:14)',
         '  at Socket.EventEmitter.emit (events.js:92:17)',
         '  at emitReadable_ (_stream_readable.js:408:10)',
         '  at emitReadable (_stream_readable.js:404:5)',
         '  at readableAddChunk (_stream_readable.js:165:9)',
         '  at Socket.Readable.push (_stream_readable.js:127:10)',
         '  at TCP.onread (net.js:526:21)',
         '' ]
      

      Any suggestion how to debug this or if it's a known bug?

            Assignee:
            christkv Christian Amor Kvalheim
            Reporter:
            dms David Squires
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: