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

Report a more helpful error with unsupported authMechanism in initial handshake

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.6.10
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Not Needed

      Use Case

      Currently if there's an issue with the mechanism, there will be a "TypeError: Cannot read property 'prepare' of undefined" thrown. We should catch and create a more useful error.

      GH PR
      Issue encountered with mongoose

      Dependencies

      • none

      Unknowns

      • none

      Acceptance Criteria

      Implementation Requirements
      • create and pass an error to the callback when there's no auth provider found for the specified mechanism.
      Testing Requirements
      • none
      Documentation Requirements
      • none
      Follow Up Requirements
      • none

            Assignee:
            Unassigned Unassigned
            Reporter:
            neal.beeken@mongodb.com Neal Beeken
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: