Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-67182

Cannot run getMore on cursor 6353724926596320531 without an lsid // Node driver 4..7.0

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 5.0.8
    • Component/s: None
    • Labels:
      None
    • ALL
    • Hide

      with node driver (4.7.0)and local mongo instance(5.0.8)community

       

      associated code:
       .get(async(req, res) =>

      {         let query = String(req.query.custom);         let x = imsColl.find(\{'fileOrientation':query}

      ).toArray();
            console.log((await x).length)    
           })
       

      Show
      with node driver (4.7.0)and local mongo instance(5.0.8)community   associated code:  .get(async(req, res) => {         let query = String(req.query.custom);         let x = imsColl.find(\{'fileOrientation':query} ).toArray();       console.log((await x).length)          })  

      full error: 

      C:\Users\ericcoh\Projects\privateTest\node_modules\mongodb\lib\cmap\connection.js:210
                          callback(new error_1.MongoServerError(document));
                                   ^

      MongoServerError: Cannot run getMore on cursor 6353724926596320531, which was created in session 9248a52d-57c5-47db-bf9d-1efa9ebf9474 - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=, without an lsid
          at Connection.onMessage (C:\Users\ericcoh\Projects\privateTest\node_modules\mongodb\lib\cmap\connection.js:210:30)
          at MessageStream.<anonymous> (C:\Users\ericcoh\Projects\privateTest\node_modules\mongodb\lib\cmap\connection.js:63:60)
          at MessageStream.emit (node:events:527:28)
          at processIncomingData (C:\Users\ericcoh\Projects\privateTest\node_modules\mongodb\lib\cmap\message_stream.js:132:20)
          at MessageStream._write (C:\Users\ericcoh\Projects\privateTest\node_modules\mongodb\lib\cmap\message_stream.js:33:9)
          at writeOrBuffer (node:internal/streams/writable:389:12)
          at _write (node:internal/streams/writable:330:10)
          at MessageStream.Writable.write (node:internal/streams/writable:334:10)
          at Socket.ondata (node:internal/streams/readable:754:22)
          at Socket.emit (node:events:527:28) {
        ok: 0,
        code: 50737,
        codeName: 'Location50737',
        [Symbol(errorLabels)]: Set(0) {}
      }

       

      associated code:
       .get(async(req, res) =>

      {         let query = String(req.query.custom);         let x = imsColl.find(\{'fileOrientation':query}

      ).toArray();
            console.log((await x).length)    
           })
       
      more info: this query should have 89 documents in it each has a few strings for some info and a binary entry of 5-6 mb . 
       
      i have no idea why its doing this i see that this was an issue a few years ago but those tickets show a status of fixed.  
      any help would be appriciated.

            Assignee:
            edwin.zhou@mongodb.com Edwin Zhou
            Reporter:
            rickywork2788@gmail.com ricky work
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: