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

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

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.1.1, 2.5
    • Component/s: Connectivity
    • None
    • Environment:

      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.

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

              Created:
              Updated:
              Resolved: