Mongodb throws uncaughtException: [TypeError: Cannot read property 's' of null] in error logs

Solution Verified - Updated -

Issue

  • Mongodb throws uncaughtException: [TypeError: Cannot read property 's' of null] in error logs
  • Error Logs of Cloud APP show Mongodb throwing uncaughtExceptions similar to the example below:

    uncaughtException: [TypeError: Cannot read property 's' of null]
    Internal error: [TypeError: Cannot read property 's' of null]
    TypeError: Cannot read property 's' of null
      at Cursor._killcursor (/home/fh/.fh-npm-node4/mongodb/2.1.17/node_modules/mongodb-core/lib/cursor.js:312:18)
      at Cursor.kill (/home/fh/.fh-npm-node4/mongodb/2.1.17/node_modules/mongodb-core/lib/cursor.js:403:8)
      at nextFunction (/home/fh/.fh-npm-node4/mongodb/2.1.17/node_modules/mongodb-core/lib/cursor.js:585:10)
      at Cursor.next [as _next] (/home/fh/.fh-npm-node4/mongodb/2.1.17/node_modules/mongodb-core/lib/cursor.js:689:3)
      at fetchDocs (/home/fh/.fh-npm-node4/mongodb/2.1.17/lib/cursor.js:835:10)
      at /home/fh/.fh-npm-node4/mongodb/2.1.17/lib/cursor.js:858:7
      at handleCallback (/home/fh/.fh-npm-node4/mongodb/2.1.17/node_modules/mongodb-core/lib/cursor.js:159:5)
      at nextFunction (/home/fh/.fh-npm-node4/mongodb/2.1.17/node_modules/mongodb-core/lib/cursor.js:679:5)
      at /home/fh/.fh-npm-node4/mongodb/2.1.17/node_modules/mongodb-core/lib/cursor.js:581:7
      at queryCallback (/home/fh/.fh-npm-node4/mongodb/2.1.17/node_modules/mongodb-core/lib/cursor.js:241:5)
      at Callbacks.emit (/home/fh/.fh-npm-node4/mongodb/2.1.17/node_modules/mongodb-core/lib/topologies/server.js:119:3)
      at null.messageHandler (/home/fh/.fh-npm-node4/mongodb/2.1.17/node_modules/mongodb-core/lib/topologies/server.js:358:23)
      at Socket.<anonymous> (/home/fh/.fh-npm-node4/mongodb/2.1.17/node_modules/mongodb-core/lib/connection/connection.js:211:18)
      at emitOne (events.js:77:13)
      at Socket.emit (events.js:169:7)
      at readableAddChunk (_stream_readable.js:153:18)
    

Environment

  • Red Hat Mobile Application Platform ( RHMAP ) - v3.16,v4.3
  • MongoDB
  • Node.js Driver

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.