[CSHARP-2906] Errorunity in Created: 18/Jan/20  Updated: 16/Mar/20  Resolved: 16/Mar/20

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 2.10.1
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: gay man Assignee: Dmitry Lukyanov (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Visual Studio COde



 Description   

<6da29fc855c44d33ad78b3e27475ff27>:0) MongoDB.Driver.MongoServerInstance.Ping (MongoDB.Driver.Internal.MongoConnection connection) (at <6da29fc855c44d33ad78b3e27475ff27>:0) MongoDB.Driver.MongoServerInstance.Connect () (at <6da29fc855c44d33ad78b3e27475ff27>:0) MongoDB.Driver.Internal.DirectMongoServerProxy.Connect (System.TimeSpan timeout, MongoDB.Driver.ReadPreference readPreference) (at <6da29fc855c44d33ad78b3e27475ff27>:0) Rethrow as MongoConnectionException: Unable to connect to server xeonsectorfs-q3tdw.mongodb.net:27017: Connection timed out. MongoDB.Driver.Internal.DirectMongoServerProxy.Connect (System.TimeSpan timeout, MongoDB.Driver.ReadPreference readPreference) (at <6da29fc855c44d33ad78b3e27475ff27>:0) MongoDB.Driver.Internal.DirectMongoServerProxy.ChooseServerInstance (MongoDB.Driver.ReadPreference readPreference) (at <6da29fc855c44d33ad78b3e27475ff27>:0) MongoDB.Driver.MongoServer.AcquireConnection (MongoDB.Driver.ReadPreference readPreference) (at <6da29fc855c44d33ad78b3e27475ff27>:0) MongoDB.Driver.MongoCollection.InsertBatch (System.Type nominalType, System.Collections.IEnumerable documents, MongoDB.Driver.MongoInsertOptions options) (at <6da29fc855c44d33ad78b3e27475ff27>:0) MongoDB.Driver.MongoCollection.Insert (System.Type nominalType, System.Object document, MongoDB.Driver.MongoInsertOptions options) (at <6da29fc855c44d33ad78b3e27475ff27>:0) MongoDB.Driver.MongoCollection.Insert (System.Type nominalType, System.Object document) (at <6da29fc855c44d33ad78b3e27475ff27>:0) MongoDB.Driver.MongoCollection.Insert[TNominalType] (TNominalType document) (at <6da29fc855c44d33ad78b3e27475ff27>:0) Mongo.InsertAccount (System.String username, System.String password, System.String email) (at Assets/Database/Mongo.cs:42) Server.Init () (at Assets/Scripts/Server.cs:54) Server.Start () (at Assets/Scripts/Server.cs:26)
(I keep getting this error even though I put everything in correctly.)



 Comments   
Comment by Dmitry Lukyanov (Inactive) [ 27/Jan/20 ]

Hello matthew_davis12@outlook.com,

can you please provide more details:

  1. The full error message together with the stack trace.
  2. Description of what are you trying to do. It will be great if you can provide a small repro of your issue.
  3. Description of your environment.

Also, can you confirm that you're using the driver version 2.10.1? I see this line in your stack trace:
MongoDB.Driver.Internal.MongoConnection, but this class has been removed more than 5 years ago. So, please recheck it.

Generated at Wed Feb 07 21:43:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.