{System.Net.Http.HttpRequestException: Connection refused ---> System.Net.Sockets.SocketException: Connection refused\n at System.Net.Http.ConnectHelper.ConnectAsync (System.String host, System.Int32 port, System.Threading.CancellationToken cancellationToken) [0x000c8] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ConnectHelper.cs:65 \n --- End of inner exception stack trace ---\n at System.Net.Http.ConnectHelper.ConnectAsync (System.String host, System.Int32 port, System.Threading.CancellationToken cancellationToken) [0x00180] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ConnectHelper.cs:84 \n at System.Threading.Tasks.ValueTask`1[TResult].get_Result () [0x0001b] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Threading/Tasks/ValueTask.cs:813 \n at System.Net.Http.HttpConnectionPool.CreateConnectionAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x000ea] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:385 \n at System.Threading.Tasks.ValueTask`1[TResult].get_Result () [0x0001b] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Threading/Tasks/ValueTask.cs:813 \n at System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionAsync (System.Threading.Tasks.ValueTask`1[TResult] creationTask) [0x000a2] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:543 \n at System.Threading.Tasks.ValueTask`1[TResult].get_Result () [0x0001b] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Threading/Tasks/ValueTask.cs:813 \n at System.Net.Http.HttpConnectionPool.SendWithRetryAsync (System.Net.Http.HttpRequestMessage request, System.Boolean doRequestAuth, System.Threading.CancellationToken cancellationToken) [0x0003f] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:284 \n at System.Net.Http.RedirectHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00070] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/RedirectHandler.cs:32 \n at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered (System.Threading.Tasks.Task`1[TResult] sendTask, System.Net.Http.HttpRequestMessage request, System.Threading.CancellationTokenSource cts, System.Boolean disposeCts) [0x000b3] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/HttpClient.cs:531 \n at Microsoft.Azure.Cosmos.CosmosHttpClientCore.ExecuteHttpHelperAsync (System.Net.Http.HttpRequestMessage requestMessage, Microsoft.Azure.Documents.ResourceType resourceType, System.Threading.CancellationToken cancellationToken) [0x000d6] in :0 \n at Microsoft.Azure.Cosmos.CosmosHttpClientCore.SendHttpHelperAsync (System.Func`1[TResult] createRequestMessageAsync, Microsoft.Azure.Documents.ResourceType resourceType, Microsoft.Azure.Cosmos.HttpTimeoutPolicy timeoutPolicy, Microsoft.Azure.Documents.IClientSideRequestStatistics clientSideRequestStatistics, System.Threading.CancellationToken cancellationToken) [0x00371] in :0 \n at Microsoft.Azure.Cosmos.GatewayAccountReader.GetDatabaseAccountAsync (System.Uri serviceEndpoint) [0x00136] in :0 \n at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager+GetAccountPropertiesHelper.GetAndUpdateAccountPropertiesAsync (System.Uri endpoint) [0x000c3] in :0 \n at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager+GetAccountPropertiesHelper.GetAccountPropertiesAsync () [0x0026c] in :0 \n at Microsoft.Azure.Cosmos.GatewayAccountReader.InitializeReaderAsync () [0x00088] in :0 \n at Microsoft.Azure.Cosmos.CosmosAccountServiceConfiguration.InitializeAsync () [0x0006f] in :0 \n at Microsoft.Azure.Cosmos.DocumentClient.InitializeGatewayConfigurationReaderAsync () [0x000a2] in :0 \n at Microsoft.Azure.Cosmos.DocumentClient.GetInitializationTaskAsync (Microsoft.Azure.Documents.IStoreClientFactory storeClientFactory) [0x00065] in :0 \n at Microsoft.Azure.Cosmos.DocumentClient.EnsureValidClientAsync (Microsoft.Azure.Cosmos.Tracing.ITrace trace) [0x001de] in :0 \n at Microsoft.Azure.Cosmos.Handlers.RequestInvokerHandler.EnsureValidClientAsync (Microsoft.Azure.Cosmos.RequestMessage request, Microsoft.Azure.Cosmos.Tracing.ITrace trace) [0x00075] in :0 \n at Microsoft.Azure.Cosmos.Handlers.RequestInvokerHandler.SendAsync (Microsoft.Azure.Cosmos.RequestMessage request, System.Threading.CancellationToken cancellationToken) [0x0016b] in :0 \n at Microsoft.Azure.Cosmos.Handlers.RequestInvokerHandler.SendAsync (System.String resourceUriString, Microsoft.Azure.Documents.ResourceType resourceType, Microsoft.Azure.Documents.OperationType operationType, Microsoft.Azure.Cosmos.RequestOptions requestOptions, Microsoft.Azure.Cosmos.ContainerInternal cosmosContainerCore, Microsoft.Azure.Cosmos.FeedRange feedRange, System.IO.Stream streamPayload, System.Action`1[T] requestEnricher, Microsoft.Azure.Cosmos.Tracing.ITrace trace, System.Threading.CancellationToken cancellationToken) [0x006c7] in :0 \n at Microsoft.Azure.Cosmos.ContainerCore.ProcessItemStreamAsync (System.Nullable`1[T] partitionKey, System.String itemId, System.IO.Stream streamPayload, Microsoft.Azure.Documents.OperationType operationType, Microsoft.Azure.Cosmos.ItemRequestOptions requestOptions, Microsoft.Azure.Cosmos.Tracing.ITrace trace, System.Threading.CancellationToken cancellationToken) [0x000fe] in :0 \n at Microsoft.Azure.Cosmos.ContainerCore.ReadItemAsync[T] (System.String id, Microsoft.Azure.Cosmos.PartitionKey partitionKey, Microsoft.Azure.Cosmos.Tracing.ITrace trace, Microsoft.Azure.Cosmos.ItemRequestOptions requestOptions, System.Threading.CancellationToken cancellationToken) [0x0008a] in :0 \n at Microsoft.Azure.Cosmos.ClientContextCore.RunWithDiagnosticsHelperAsync[TResult] (Microsoft.Azure.Cosmos.Tracing.ITrace trace, System.Func`2[T,TResult] task) [0x00091] in :0 \n at Microsoft.Azure.Cosmos.ClientContextCore+<>c_DisplayClass31_0`1[TResult].b_0 () [0x000e5] in :0 \n at SheepsheadMultiOS.Services.DBService.GetSinglePlayer (System.String pContainer, System.String pAppUserId, System.String pPartitionKey) [0x0005c] in C:\Users\druch\Documents\Sheepshead\SheepsheadMultiOS\SheepsheadMultiOS\Services\DBService.cs:128 }