-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Empty show more show less
Getting the following error after a period of time when doing a collection.watch.
let stream = this.db.collection("Test").watch([], { fullDocument: 'updateLookup', });
stream.on('change', changeFunc);
Any ideas on how I debug this?
{ MongoError: cursor id 8439190188036941859 not found at C:\Working\my-app\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:593:63 at authenticateStragglers (C:\Working\my-app\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:516:16) at Connection.messageHandler (C:\Working\my-app\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:552:5) at emitMessageHandler (C:\Working\my-app\node_modules\mongodb\node_modules\mongodb-core\lib\connection\connection.js:309:10) at Socket.<anonymous> (C:\Working\my-app\node_modules\mongodb\node_modules\mongodb-core\lib\connection\connection.js:452:17) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at Socket.Readable.push (_stream_readable.js:208:10) at TCP.onread (net.js:594:20) name: 'MongoError', message: 'cursor id 8439190188036941859 not found', operationTime: Timestamp \{ _bsontype: 'Timestamp', low_: 2, high_: 1540221790 }, ok: 0, errmsg: 'cursor id 8439190188036941859 not found', code: 43, codeName: 'CursorNotFound', '$clusterTime': \{ clusterTime: Timestamp { _bsontype: 'Timestamp', low_: 2, high_: 1540221790 }, signature: \{ hash: [Object], keyId: 0 } } }
- is related to
-
SERVER-38388 Reuse of ended session causes error when used again during logical sessions cache reaping
- Closed
-
NODE-1418 Provide a `withSession` helper on `MongoClient`
- Closed