C# driver stopped working with Unity since v3.2.0

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Critical - P2
    • 3.6.0
    • Affects Version/s: 3.2.0, 3.2.1, 3.3.0, 3.4.0, 3.4.1, 3.4.2, 3.4.3
    • Component/s: None
    • None
    • 🔵 Done
    • Fully Compatible
    • Dotnet Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Summary

      The C# MongoDB driver has been working well up until v.3.1.0 in Unity (Dedicated Server for Linux build type).
      Starting with v3.2.0, the MongoDB C# Driver started throwing, as soon as our server makes the first query, which is concerning, since sooner or later we'll have to update the driver.

      The exception stacktrace.

      We use MongoDB Atlas as the MongoDB server.

      Have tried anything that is only imaginable, but wasn't able to fix this.
      v3.1.0 is the last working version, this bug blocks us from updating to any newer C# driver versions, until it is fixed.

      How to Reproduce

      1. Install Unity (I use 6000.0.55f1).
      2. Install MongoDB C# Driver for the Unity project, any version since 3.2.0 inclusive would work. Here is how I installed the driver: https://www.mongodb.com/community/forums/t/c-sharp-driver-in-unity/203747
      3. Write any query, the one our server executes first (which is the one that throws), is 
      _collection.ReplaceOneAsync().
      4. Click "File" -> "Build Profiles", then select "Linux Server", then build and run it. Or just run from the Unity Editor by clicking "Play".
      As soon as the query is performed, you will get the "ArgumentException: None of the discovered or specified addresses match the socket address family." exception.

            Assignee:
            Oleksandr Poliakov
            Reporter:
            Maksim Hapeyenka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: