Cannot catch exception with useUnifiedTopology

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.7.0
    • Affects Version/s: 3.6.0
    • Component/s: None
    • 2
    • None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Passing an invalid value for the explain parameter throws an exception.

      However, when useUnifiedTopology is set to true, the exception cannot be caught.

      Tested with mongodb@3.6.9 and MongoDB server version 4.4.7

      Please find attached a minimal example that demonstrates the issue. Note that setting useUnifiedTopology to false lets the application catch/handle the error.

              Assignee:
              Daria Pardue
              Reporter:
              Kartal Kaan Bozdoğan
              Daria Pardue
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: