Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-2358

Sporadic exception opening connections: MongoDB.Driver.MongoAuthenticationException: Server sent an invalid nonce.

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major - P3 Major - P3
    • None
    • 2.1.1, 2.5
    • Connectivity
    • None

    Description

      MongoDB csharp driver is throwing an exception sporadically with authentication errors during scramsha1 authentication handshake due to a wrong nonce returned by the server. ScramSha1Authenticator.cs.

      The credentials are good since connections from the application are succeeding most of the time.

      Upgrading from 2.1.1.158 to 2.5.0.0 didn't fix the issue.

      I would like to understand why is the server retrieving a bad nonce and how to fix this issue.

      Attachments

        Activity

          People

            Unassigned Unassigned
            manuel.fontan Manuel Fontan Garcia (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: