Skip to content

Instantly share code, notes, and snippets.

@chrisbck
Created April 5, 2020 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisbck/03ac99046afcec5ef8b40afcabcf80b8 to your computer and use it in GitHub Desktop.
Save chrisbck/03ac99046afcec5ef8b40afcabcf80b8 to your computer and use it in GitHub Desktop.
Error generated from Godot when trying to InsertOne() using MongoDB,Driver Nuget package.
Unhandled Exception:
System.TimeoutException: A timeout occured after 30000ms selecting a server using CompositeServerSelector{ Selectors = MongoDB.Driver.MongoClient+AreSessionsSupportedServerSelector, LatencyLimitingServerSelector{ AllowedLatencyRange = 00:00:00.0150000 } }. Client view of cluster state is { ClusterId : "1", ConnectionMode : "ReplicaSet", Type : "ReplicaSet", State : "Disconnected", Servers : [], DnsMonitorException : "DnsClient.DnsResponseException: Unhandled exception ---> System.IndexOutOfRangeException: Cannot read byte 265, out of range.
at DnsClient.DnsDatagramReader.ReadByte () [0x0002f] in <57cd9b7b8c7b47269efcc38c43d25c74>:0
at DnsClient.DnsDatagramReader.ReadLabels () [0x000ff] in <57cd9b7b8c7b47269efcc38c43d25c74>:0
at DnsClient.DnsDatagramReader.ReadQuestionQueryString () [0x00006] in <57cd9b7b8c7b47269efcc38c43d25c74>:0
at DnsClient.DnsRecordFactory.ReadRecordInfo () [0x00000] in <57cd9b7b8c7b47269efcc38c43d25c74>:0
at DnsClient.DnsMessageHandler.GetResponseMessage (System.ArraySegment`1[T] responseData) [0x0008f] in <57cd9b7b8c7b47269efcc38c43d25c74>:0
at DnsClient.DnsUdpMessageHandler.Query (System.Net.IPEndPoint server, DnsClient.DnsRequestMessage request, System.TimeSpan timeout) [0x00138] in <57cd9b7b8c7b47269efcc38c43d25c74>:0
at DnsClient.LookupClient.ResolveQuery (System.Collections.Generic.IReadOnlyCollection`1[T] servers, DnsClient.DnsMessageHandler handler, DnsClient.DnsRequestMessage request, System.Boolean useCache, DnsClient.LookupClientAudit continueAudit) [0x000c8] in <57cd9b7b8c7b47269efcc38c43d25c74>:0
--- End of inner exception stack trace ---
at DnsClient.LookupClient.ResolveQuery (System.Collections.Generic.IReadOnlyCollection`1[T] servers, DnsClient.DnsMessageHandler handler, DnsClient.DnsRequestMessage request, System.Boolean useCache, DnsClient.LookupClientAudit continueAudit) [0x00348] in <57cd9b7b8c7b47269efcc38c43d25c74>:0
at DnsClient.LookupClient.QueryInternal (System.Collections.Generic.IReadOnlyCollection`1[T] servers, DnsClient.DnsQuestion question, System.Boolean useCache) [0x0003e] in <57cd9b7b8c7b47269efcc38c43d25c74>:0
at DnsClient.LookupClient.Query (System.String query, DnsClient.QueryType queryType, DnsClient.QueryClass queryClass) [0x0000f] in <57cd9b7b8c7b47269efcc38c43d25c74>:0
at MongoDB.Driver.Core.Misc.DnsClientWrapper.ResolveSrvRecords (System.String service, System.Threading.CancellationToken cancellationToken) [0x00013] in <463e32588f714bc080149ed6b2fffa9d>:0
at MongoDB.Driver.Core.Clusters.DnsMonitor.Monitor () [0x00018] in <463e32588f714bc080149ed6b2fffa9d>:0 " }.
at MongoDB.Driver.Core.Clusters.Cluster.ThrowTimeoutException (MongoDB.Driver.Core.Clusters.ServerSelectors.IServerSelector selector, MongoDB.Driver.Core.Clusters.ClusterDescription description) [0x00013] in <463e32588f714bc080149ed6b2fffa9d>:0
at MongoDB.Driver.Core.Clusters.Cluster+WaitForDescriptionChangedHelper.HandleCompletedTask (System.Threading.Tasks.Task completedTask) [0x00009] in <463e32588f714bc080149ed6b2fffa9d>:0
at MongoDB.Driver.Core.Clusters.Cluster.WaitForDescriptionChanged (MongoDB.Driver.Core.Clusters.ServerSelectors.IServerSelector selector, MongoDB.Driver.Core.Clusters.ClusterDescription description, System.Threading.Tasks.Task descriptionChangedTask, System.TimeSpan timeout, System.Threading.CancellationToken cancellationToken) [0x00021] in <463e32588f714bc080149ed6b2fffa9d>:0
at MongoDB.Driver.Core.Clusters.Cluster.SelectServer (MongoDB.Driver.Core.Clusters.ServerSelectors.IServerSelector selector, System.Threading.CancellationToken cancellationToken) [0x00057] in <463e32588f714bc080149ed6b2fffa9d>:0
at MongoDB.Driver.MongoClient.AreSessionsSupportedAfterServerSelection (System.Threading.CancellationToken cancellationToken) [0x00006] in <3c5c983728984df9a98d247411c61649>:0
at MongoDB.Driver.MongoClient.AreSessionsSupported (System.Threading.CancellationToken cancellationToken) [0x0001b] in <3c5c983728984df9a98d247411c61649>:0
at MongoDB.Driver.MongoClient.StartImplicitSession (System.Threading.CancellationToken cancellationToken) [0x00000] in <3c5c983728984df9a98d247411c61649>:0
at MongoDB.Driver.MongoClient.UsingImplicitSession[TResult] (System.Func`2[T,TResult] func, System.Threading.CancellationToken cancellationToken) [0x00000] in <3c5c983728984df9a98d247411c61649>:0
at MongoDB.Driver.MongoClient.ListDatabaseNames (System.Threading.CancellationToken cancellationToken) [0x00014] in <3c5c983728984df9a98d247411c61649>:0
at MongoCRUD..ctor (System.String database) [0x0002b] in C:\Users\Chris\Desktop\Godot Mongo\Mongo.cs:35
at Mongo..ctor () [0x00000] in C:\Users\Chris\Desktop\Godot Mongo\Mongo.cs:10
ERROR: debug_send_unhandled_exception_error: System.TimeoutException: A timeout occured after 30000ms selecting a server using CompositeServerSelector{ Selectors = MongoDB.Driver.MongoClient+AreSessionsSupportedServerSelector, LatencyLimitingServerSelector{ AllowedLatencyRange = 00:00:00.0150000 } }. Client view of cluster state is { ClusterId : "1", ConnectionMode : "ReplicaSet", Type : "ReplicaSet", State : "Disconnected", Servers : [], DnsMonitorException : "DnsClient.DnsResponseException: Unhandled exception ---> System.IndexOutOfRangeException: Cannot read byte 265, out of range.
at DnsClient.DnsDatagramReader.ReadByte () [0x0002f] in <57cd9b7b8c7b47269efcc38c43d25c74>:0
at DnsClient.DnsDatagramReader.ReadLabels () [0x000ff] in <57cd9b7b8c7b47269efcc38c43d25c74>:0
at DnsClient.DnsDatagramReader.ReadQuestionQueryString () [0x00006] in <57cd9b7b8c7b47269efcc38c43d25c74>:0
at DnsClient.DnsRecordFactory.ReadRecordInfo () [0x00000] in <57cd9b7b8c7b47269efcc38c43d25c74>:0
at DnsClient.DnsMessageHandler.GetResponseMessage (System.ArraySegment`1[T] responseData) [0x0008f] in <57cd9b7b8c7b47269efcc38c43d25c74>:0
at DnsClient.DnsUdpMessageHandler.Query (System.Net.IPEndPoint server, DnsClient.DnsRequestMessage request, System.TimeSpan timeout) [0x00138] in <57cd9b7b8c7b47269efcc38c43d25c74>:0
at DnsClient.LookupClient.ResolveQuery (System.Collections.Generic.IReadOnlyCollection`1[T] servers, DnsClient.DnsMessageHandler handler, DnsClient.DnsRequestMessage request, System.Boolean useCache, DnsClient.LookupClientAudit continueAudit) [0x000c8] in <57cd9b7b8c7b47269efcc38c43d25c74>:0
--- End of inner exception stack trace ---
at DnsClient.LookupClient.ResolveQuery (System.Collections.Generic.IReadOnlyCollection`1[T] servers, DnsClient.DnsMessageHandler handler, DnsClient.DnsRequestMessage request, System.Boolean useCache, DnsClient.LookupClientAudit continueAudit) [0x00348] in <57cd9b7b8c7b47269efcc38c43d25c74>:0
at DnsClient.LookupClient.QueryInternal (System.Collections.Generic.IReadOnlyCollection`1[T] servers, DnsClient.DnsQuestion question, System.Boolean useCache) [0x0003e] in <57cd9b7b8c7b47269efcc38c43d25c74>:0
at DnsClient.LookupClient.Query (System.String query, DnsClient.QueryType queryType, DnsClient.QueryClass queryClass) [0x0000f] in <57cd9b7b8c7b47269efcc38c43d25c74>:0
at MongoDB.Driver.Core.Misc.DnsClientWrapper.ResolveSrvRecords (System.String service, System.Threading.CancellationToken cancellationToken) [0x00013] in <463e32588f714bc080149ed6b2fffa9d>:0
at MongoDB.Driver.Core.Clusters.DnsMonitor.Monitor () [0x00018] in <463e32588f714bc080149ed6b2fffa9d>:0 " }.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment