My Node Server crashing on change stream error

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.5.8
    • Component/s: Change Streams
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Hi,

      My database lives on MongoDB Atlas: Mongo Client version: �5.7.12 

      The server crashes when MongoDB processes a change in the database. I run intermittently into the error below : How can I catch this error?

      TypeError: Cannot read property 'documents' of undefined at /Users/aubs/WORK/DANCER_REPO/dancer-repo/dancer-3033-v2/node_modules/mongoose/node_modules/mongodb/lib/change_stream.js:307:31 at done (/Users/aubs/WORK/DANCER_REPO/dancer-repo/dancer-3033-v2/node_modules/mongoose/node_modules/mongodb/lib/core/cursor.js:463:7) at /Users/aubs/WORK/DANCER_REPO/dancer-repo/dancer-3033-v2/node_modules/mongoose/node_modules/mongodb/lib/core/cursor.js:556:18 at /Users/aubs/WORK/DANCER_REPO/dancer-repo/dancer-3033-v2/node_modules/mongoose/node_modules/mongodb/lib/operations/execute_operation.js:75:17 at executeCallback (/Users/aubs/WORK/DANCER_REPO/dancer-repo/dancer-3033-v2/node_modules/mongoose/node_modules/mongodb/lib/operations/execute_operation.js:68:9) at callbackWithRetry (/Users/aubs/WORK/DANCER_REPO/dancer-repo/dancer-3033-v2/node_modules/mongoose/node_modules/mongodb/lib/operations/execute_operation.js:131:14) at /Users/aubs/WORK/DANCER_REPO/dancer-repo/dancer-3033-v2/node_modules/mongoose/node_modules/mongodb/lib/operations/command_v2.js:92:9 at /Users/aubs/WORK/DANCER_REPO/dancer-repo/dancer-3033-v2/node_modules/mongoose/node_modules/mongodb/lib/core/connection/pool.js:405:18 at processTicksAndRejections (internal/process/task_queues.js:79:11)

            Assignee:
            Eric Adum (Inactive)
            Reporter:
            AV Malabie
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: