-
Type: Bug
-
Resolution: Fixed
-
Priority: Critical - P2
-
Affects Version/s: 3.6.6
-
Component/s: Core
-
Empty show more show less
-
Not Needed
When making a rolling restart of my Atlas cluster, this error is sometimes thrown when the client looses or re-establishes the connection, not sure.
Can this be handled gracefully by adding further if-checks?
Error message: "Cannot read property 'clusterTime' of undefined"
[https://github.com/mongodb/node-mongodb-native/blob/3.6/lib/core/wireprotocol/command.js#L53|This line causes the error]
Stack trace from NODE-3202:
TypeError: Cannot read property 'clusterTime' of undefined at _command (/service/node_modules/mongodb/lib/core/wireprotocol/command.js:53:63) at command (/service/node_modules/mongodb/lib/core/wireprotocol/command.js:28:5) at Object.getMore (/service/node_modules/mongodb/lib/core/wireprotocol/get_more.js:92:3) at Connection.getMore (/service/node_modules/mongodb/lib/cmap/connection.js:179:8) at /service/node_modules/mongodb/lib/core/sdam/server.js:333:12 at Object.callback (/service/node_modules/mongodb/lib/cmap/connection_pool.js:345:7) at processWaitQueue (/service/node_modules/mongodb/lib/cmap/connection_pool.js:468:23) at /service/node_modules/mongodb/lib/cmap/connection_pool.js:236:28 at processTicksAndRejections (internal/process/task_queues.js:75:11)
- is duplicated by
-
NODE-3202 TypeError: Cannot read property 'clusterTime' of undefined
- Closed