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

MongoServerError not showing file and line of error original source

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: None
    • Component/s: None
    • Not Needed

      I'm getting errors with node mongodb native driver version 4 but it doesn't show me which file in my project is generating the error, this way I can't fix the error. I need to know how to make mongoError show me the file that is generating the error.

       

      MongoServerError: Sort exceeded memory limit of 104857600 bytes, but did not opt in to external sorting. Aborting operation. Pass allowDiskUse:true to opt in.
      2|mainServer_dev | at MessageStream.messageHandler (/root/a3menage.com/node_modules/mongodb/lib/cmap/connection.js:470:30)
      2|mainServer_dev | at MessageStream.emit (events.js:315:20)
      2|mainServer_dev | at MessageStream.EventEmitter.emit (domain.js:467:12)
      2|mainServer_dev | at processIncomingData (/root/a3menage.com/node_modules/mongodb/lib/cmap/message_stream.js:108:16)
      2|mainServer_dev | at MessageStream._write (/root/proj/node_modules/mongodb/lib/cmap/message_stream.js:28:9)
      2|mainServer_dev | at writeOrBuffer (internal/streams/writable.js:358:12)
      2|mainServer_dev | at MessageStream.Writable.write (internal/streams/writable.js:303:10)
      2|mainServer_dev | at TLSSocket.ondata (internal/streams/readable.js:719:22)
      2|mainServer_dev | at TLSSocket.emit (events.js:315:20)
      2|mainServer_dev | at TLSSocket.EventEmitter.emit (domain.js:467:12)

            Assignee:
            Unassigned Unassigned
            Reporter:
            kaue.sedrez@gmail.com Winetu K Bilhalva
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: