Skip to content

Refactor RequestData #324

Refactor RequestData

Refactor RequestData #324

GitHub Actions / Test Results failed Oct 30, 2024 in 0s

100 tests run, 81 passed, 0 skipped, 19 failed.

Annotations

Check failure on line 1 in tests\Elastic.Elasticsearch.IntegrationTests\DefaultClusterTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results

DefaultClusterTests.SyncRequestDoesNotThrow

Expected response.ApiCallDetails.HasSuccessfulStatusCode to be true, but found False.
Raw output
at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
   at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
   at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
   at FluentAssertions.Primitives.BooleanAssertions.BeTrue(String because, Object[] becauseArgs)
   at Elastic.Elasticsearch.IntegrationTests.DefaultClusterTests.SyncRequestDoesNotThrow() in D:\a\elastic-transport-net\elastic-transport-net\tests\Elastic.Elasticsearch.IntegrationTests\DefaultClusterTests.cs:line 30
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1 in tests\Elastic.Elasticsearch.IntegrationTests\DefaultClusterTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results

DefaultClusterTests.AsyncRequestDoesNotThrow

Expected response.ApiCallDetails.HasSuccessfulStatusCode to be true, but found False.
Raw output
at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
   at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
   at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
   at FluentAssertions.Primitives.BooleanAssertions.BeTrue(String because, Object[] becauseArgs)
   at Elastic.Elasticsearch.IntegrationTests.DefaultClusterTests.AsyncRequestDoesNotThrow() in D:\a\elastic-transport-net\elastic-transport-net\tests\Elastic.Elasticsearch.IntegrationTests\DefaultClusterTests.cs:line 22
--- End of stack trace from previous location ---

Check failure on line 1 in tests\Elastic.Elasticsearch.IntegrationTests\SecurityClusterTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results

SecurityClusterTests.SyncRequestDoesNotThrow

Expected response.ApiCallDetails.HasSuccessfulStatusCode to be true, but found False.
Raw output
at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
   at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
   at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
   at FluentAssertions.Primitives.BooleanAssertions.BeTrue(String because, Object[] becauseArgs)
   at Elastic.Elasticsearch.IntegrationTests.SecurityClusterTests.SyncRequestDoesNotThrow() in D:\a\elastic-transport-net\elastic-transport-net\tests\Elastic.Elasticsearch.IntegrationTests\SecurityClusterTests.cs:line 32
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1 in tests\Elastic.Elasticsearch.IntegrationTests\SecurityClusterTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results

SecurityClusterTests.AsyncRequestDoesNotThrow

Expected response.ApiCallDetails.HasSuccessfulStatusCode to be true, but found False.
Raw output
at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
   at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
   at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
   at FluentAssertions.Primitives.BooleanAssertions.BeTrue(String because, Object[] becauseArgs)
   at Elastic.Elasticsearch.IntegrationTests.SecurityClusterTests.AsyncRequestDoesNotThrow() in D:\a\elastic-transport-net\elastic-transport-net\tests\Elastic.Elasticsearch.IntegrationTests\SecurityClusterTests.cs:line 24
--- End of stack trace from previous location ---

Check failure on line 1 in tests\Elastic.Transport.IntegrationTests\Plumbing\Examples\ControllerIntegrationTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results

ControllerIntegrationTests.CanCallIntoController

Elastic.Transport.UnexpectedTransportException : Object reference not set to an instance of an object.
---- System.NullReferenceException : Object reference not set to an instance of an object.
Raw output
at Elastic.Transport.DistributedTransport`1.ThrowUnexpectedTransportException[TResponse](Exception killerException, List`1 seenExceptions, Endpoint endpoint, TResponse response, RequestPipeline pipeline) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\DistributedTransport.cs:line 308
   at Elastic.Transport.DistributedTransport`1.RequestCoreAsync[TResponse](Boolean isAsync, EndpointPath path, PostData data, OpenTelemetryData openTelemetryData, IRequestConfiguration localRequestConfiguration, CustomResponseBuilder customResponseBuilder, CancellationToken cancellationToken)
   at Elastic.Transport.IntegrationTests.Plumbing.Examples.ControllerIntegrationTests.CanCallIntoController() in D:\a\elastic-transport-net\elastic-transport-net\tests\Elastic.Transport.IntegrationTests\Plumbing\Examples\ControllerIntegrationTests.cs:line 29
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
   at Elastic.Transport.HttpRequestInvoker.SetAuthenticationIfNeeded(Endpoint endpoint, RequestData requestData, HttpRequestMessage requestMessage) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 346
   at Elastic.Transport.HttpRequestInvoker.CreateHttpRequestMessage(Endpoint endpoint, RequestData requestData, Boolean isAsync) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 335
   at Elastic.Transport.HttpRequestInvoker.RequestCoreAsync[TResponse](Boolean isAsync, Endpoint endpoint, RequestData requestData, PostData postData, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 87
   at Elastic.Transport.DefaultRequestPipeline`1.CallProductEndpointCoreAsync[TResponse](Boolean isAsync, Endpoint endpoint, RequestData requestData, PostData postData, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\Pipeline\DefaultRequestPipeline.cs:line 188
   at Elastic.Transport.DistributedTransport`1.RequestCoreAsync[TResponse](Boolean isAsync, EndpointPath path, PostData data, OpenTelemetryData openTelemetryData, IRequestConfiguration localRequestConfiguration, CustomResponseBuilder customResponseBuilder, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\DistributedTransport.cs:line 186

Check failure on line 1 in tests\Elastic.Transport.IntegrationTests\Http\StreamResponseTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results

StreamResponseTests.WhenInvalidJson_MemoryStreamShouldBeDisposed

Elastic.Transport.UnexpectedTransportException : Object reference not set to an instance of an object.
---- System.NullReferenceException : Object reference not set to an instance of an object.
Raw output
at Elastic.Transport.DistributedTransport`1.ThrowUnexpectedTransportException[TResponse](Exception killerException, List`1 seenExceptions, Endpoint endpoint, TResponse response, RequestPipeline pipeline) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\DistributedTransport.cs:line 308
   at Elastic.Transport.DistributedTransport`1.RequestCoreAsync[TResponse](Boolean isAsync, EndpointPath path, PostData data, OpenTelemetryData openTelemetryData, IRequestConfiguration localRequestConfiguration, CustomResponseBuilder customResponseBuilder, CancellationToken cancellationToken)
   at Elastic.Transport.IntegrationTests.Http.StreamResponseTests.WhenInvalidJson_MemoryStreamShouldBeDisposed() in D:\a\elastic-transport-net\elastic-transport-net\tests\Elastic.Transport.IntegrationTests\Http\StreamResponseTests.cs:line 85
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
   at Elastic.Transport.HttpRequestInvoker.SetAuthenticationIfNeeded(Endpoint endpoint, RequestData requestData, HttpRequestMessage requestMessage) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 346
   at Elastic.Transport.HttpRequestInvoker.CreateHttpRequestMessage(Endpoint endpoint, RequestData requestData, Boolean isAsync) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 335
   at Elastic.Transport.HttpRequestInvoker.RequestCoreAsync[TResponse](Boolean isAsync, Endpoint endpoint, RequestData requestData, PostData postData, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 87
   at Elastic.Transport.DefaultRequestPipeline`1.CallProductEndpointCoreAsync[TResponse](Boolean isAsync, Endpoint endpoint, RequestData requestData, PostData postData, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\Pipeline\DefaultRequestPipeline.cs:line 188
   at Elastic.Transport.DistributedTransport`1.RequestCoreAsync[TResponse](Boolean isAsync, EndpointPath path, PostData data, OpenTelemetryData openTelemetryData, IRequestConfiguration localRequestConfiguration, CustomResponseBuilder customResponseBuilder, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\DistributedTransport.cs:line 186

Check failure on line 1 in tests\Elastic.Transport.IntegrationTests\Http\StreamResponseTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results

StreamResponseTests.StreamResponse_MemoryStreamShouldNotBeDisposed

Elastic.Transport.UnexpectedTransportException : Object reference not set to an instance of an object.
---- System.NullReferenceException : Object reference not set to an instance of an object.
Raw output
at Elastic.Transport.DistributedTransport`1.ThrowUnexpectedTransportException[TResponse](Exception killerException, List`1 seenExceptions, Endpoint endpoint, TResponse response, RequestPipeline pipeline) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\DistributedTransport.cs:line 308
   at Elastic.Transport.DistributedTransport`1.RequestCoreAsync[TResponse](Boolean isAsync, EndpointPath path, PostData data, OpenTelemetryData openTelemetryData, IRequestConfiguration localRequestConfiguration, CustomResponseBuilder customResponseBuilder, CancellationToken cancellationToken)
   at Elastic.Transport.IntegrationTests.Http.StreamResponseTests.StreamResponse_MemoryStreamShouldNotBeDisposed() in D:\a\elastic-transport-net\elastic-transport-net\tests\Elastic.Transport.IntegrationTests\Http\StreamResponseTests.cs:line 47
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
   at Elastic.Transport.HttpRequestInvoker.SetAuthenticationIfNeeded(Endpoint endpoint, RequestData requestData, HttpRequestMessage requestMessage) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 346
   at Elastic.Transport.HttpRequestInvoker.CreateHttpRequestMessage(Endpoint endpoint, RequestData requestData, Boolean isAsync) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 335
   at Elastic.Transport.HttpRequestInvoker.RequestCoreAsync[TResponse](Boolean isAsync, Endpoint endpoint, RequestData requestData, PostData postData, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 87
   at Elastic.Transport.DefaultRequestPipeline`1.CallProductEndpointCoreAsync[TResponse](Boolean isAsync, Endpoint endpoint, RequestData requestData, PostData postData, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\Pipeline\DefaultRequestPipeline.cs:line 188
   at Elastic.Transport.DistributedTransport`1.RequestCoreAsync[TResponse](Boolean isAsync, EndpointPath path, PostData data, OpenTelemetryData openTelemetryData, IRequestConfiguration localRequestConfiguration, CustomResponseBuilder customResponseBuilder, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\DistributedTransport.cs:line 186

Check failure on line 1 in tests\Elastic.Transport.IntegrationTests\Http\StreamResponseTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results

StreamResponseTests.WhenNoContent_MemoryStreamShouldBeDisposed

Elastic.Transport.UnexpectedTransportException : Object reference not set to an instance of an object.
---- System.NullReferenceException : Object reference not set to an instance of an object.
Raw output
at Elastic.Transport.DistributedTransport`1.ThrowUnexpectedTransportException[TResponse](Exception killerException, List`1 seenExceptions, Endpoint endpoint, TResponse response, RequestPipeline pipeline) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\DistributedTransport.cs:line 308
   at Elastic.Transport.DistributedTransport`1.RequestCoreAsync[TResponse](Boolean isAsync, EndpointPath path, PostData data, OpenTelemetryData openTelemetryData, IRequestConfiguration localRequestConfiguration, CustomResponseBuilder customResponseBuilder, CancellationToken cancellationToken)
   at Elastic.Transport.IntegrationTests.Http.StreamResponseTests.WhenNoContent_MemoryStreamShouldBeDisposed() in D:\a\elastic-transport-net\elastic-transport-net\tests\Elastic.Transport.IntegrationTests\Http\StreamResponseTests.cs:line 105
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
   at Elastic.Transport.HttpRequestInvoker.SetAuthenticationIfNeeded(Endpoint endpoint, RequestData requestData, HttpRequestMessage requestMessage) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 346
   at Elastic.Transport.HttpRequestInvoker.CreateHttpRequestMessage(Endpoint endpoint, RequestData requestData, Boolean isAsync) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 335
   at Elastic.Transport.HttpRequestInvoker.RequestCoreAsync[TResponse](Boolean isAsync, Endpoint endpoint, RequestData requestData, PostData postData, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 87
   at Elastic.Transport.DefaultRequestPipeline`1.CallProductEndpointCoreAsync[TResponse](Boolean isAsync, Endpoint endpoint, RequestData requestData, PostData postData, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\Pipeline\DefaultRequestPipeline.cs:line 188
   at Elastic.Transport.DistributedTransport`1.RequestCoreAsync[TResponse](Boolean isAsync, EndpointPath path, PostData data, OpenTelemetryData openTelemetryData, IRequestConfiguration localRequestConfiguration, CustomResponseBuilder customResponseBuilder, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\DistributedTransport.cs:line 186

Check failure on line 1 in tests\Elastic.Transport.IntegrationTests\Http\StreamResponseTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results

StreamResponseTests.StringResponse_MemoryStreamShouldBeDisposed

Elastic.Transport.UnexpectedTransportException : Object reference not set to an instance of an object.
---- System.NullReferenceException : Object reference not set to an instance of an object.
Raw output
at Elastic.Transport.DistributedTransport`1.ThrowUnexpectedTransportException[TResponse](Exception killerException, List`1 seenExceptions, Endpoint endpoint, TResponse response, RequestPipeline pipeline) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\DistributedTransport.cs:line 308
   at Elastic.Transport.DistributedTransport`1.RequestCoreAsync[TResponse](Boolean isAsync, EndpointPath path, PostData data, OpenTelemetryData openTelemetryData, IRequestConfiguration localRequestConfiguration, CustomResponseBuilder customResponseBuilder, CancellationToken cancellationToken)
   at Elastic.Transport.IntegrationTests.Http.StreamResponseTests.StringResponse_MemoryStreamShouldBeDisposed() in D:\a\elastic-transport-net\elastic-transport-net\tests\Elastic.Transport.IntegrationTests\Http\StreamResponseTests.cs:line 64
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
   at Elastic.Transport.HttpRequestInvoker.SetAuthenticationIfNeeded(Endpoint endpoint, RequestData requestData, HttpRequestMessage requestMessage) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 346
   at Elastic.Transport.HttpRequestInvoker.CreateHttpRequestMessage(Endpoint endpoint, RequestData requestData, Boolean isAsync) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 335
   at Elastic.Transport.HttpRequestInvoker.RequestCoreAsync[TResponse](Boolean isAsync, Endpoint endpoint, RequestData requestData, PostData postData, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 87
   at Elastic.Transport.DefaultRequestPipeline`1.CallProductEndpointCoreAsync[TResponse](Boolean isAsync, Endpoint endpoint, RequestData requestData, PostData postData, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\Pipeline\DefaultRequestPipeline.cs:line 188
   at Elastic.Transport.DistributedTransport`1.RequestCoreAsync[TResponse](Boolean isAsync, EndpointPath path, PostData data, OpenTelemetryData openTelemetryData, IRequestConfiguration localRequestConfiguration, CustomResponseBuilder customResponseBuilder, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\DistributedTransport.cs:line 186

Check failure on line 1 in tests\Elastic.Transport.IntegrationTests\Http\StreamResponseTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results

StreamResponseTests.StreamResponse_ShouldNotBeDisposed

Elastic.Transport.UnexpectedTransportException : Object reference not set to an instance of an object.
---- System.NullReferenceException : Object reference not set to an instance of an object.
Raw output
at Elastic.Transport.DistributedTransport`1.ThrowUnexpectedTransportException[TResponse](Exception killerException, List`1 seenExceptions, Endpoint endpoint, TResponse response, RequestPipeline pipeline) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\DistributedTransport.cs:line 308
   at Elastic.Transport.DistributedTransport`1.RequestCoreAsync[TResponse](Boolean isAsync, EndpointPath path, PostData data, OpenTelemetryData openTelemetryData, IRequestConfiguration localRequestConfiguration, CustomResponseBuilder customResponseBuilder, CancellationToken cancellationToken)
   at Elastic.Transport.IntegrationTests.Http.StreamResponseTests.StreamResponse_ShouldNotBeDisposed() in D:\a\elastic-transport-net\elastic-transport-net\tests\Elastic.Transport.IntegrationTests\Http\StreamResponseTests.cs:line 29
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
   at Elastic.Transport.HttpRequestInvoker.SetAuthenticationIfNeeded(Endpoint endpoint, RequestData requestData, HttpRequestMessage requestMessage) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 346
   at Elastic.Transport.HttpRequestInvoker.CreateHttpRequestMessage(Endpoint endpoint, RequestData requestData, Boolean isAsync) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 335
   at Elastic.Transport.HttpRequestInvoker.RequestCoreAsync[TResponse](Boolean isAsync, Endpoint endpoint, RequestData requestData, PostData postData, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 87
   at Elastic.Transport.DefaultRequestPipeline`1.CallProductEndpointCoreAsync[TResponse](Boolean isAsync, Endpoint endpoint, RequestData requestData, PostData postData, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\Pipeline\DefaultRequestPipeline.cs:line 188
   at Elastic.Transport.DistributedTransport`1.RequestCoreAsync[TResponse](Boolean isAsync, EndpointPath path, PostData data, OpenTelemetryData openTelemetryData, IRequestConfiguration localRequestConfiguration, CustomResponseBuilder customResponseBuilder, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\DistributedTransport.cs:line 186

Check failure on line 1 in tests\Elastic.Transport.IntegrationTests\Http\StreamResponseTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results

StreamResponseTests.PlainText_MemoryStreamShouldBeDisposed

Elastic.Transport.UnexpectedTransportException : Object reference not set to an instance of an object.
---- System.NullReferenceException : Object reference not set to an instance of an object.
Raw output
at Elastic.Transport.DistributedTransport`1.ThrowUnexpectedTransportException[TResponse](Exception killerException, List`1 seenExceptions, Endpoint endpoint, TResponse response, RequestPipeline pipeline) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\DistributedTransport.cs:line 308
   at Elastic.Transport.DistributedTransport`1.RequestCoreAsync[TResponse](Boolean isAsync, EndpointPath path, PostData data, OpenTelemetryData openTelemetryData, IRequestConfiguration localRequestConfiguration, CustomResponseBuilder customResponseBuilder, CancellationToken cancellationToken)
   at Elastic.Transport.IntegrationTests.Http.StreamResponseTests.PlainText_MemoryStreamShouldBeDisposed() in D:\a\elastic-transport-net\elastic-transport-net\tests\Elastic.Transport.IntegrationTests\Http\StreamResponseTests.cs:line 128
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
   at Elastic.Transport.HttpRequestInvoker.SetAuthenticationIfNeeded(Endpoint endpoint, RequestData requestData, HttpRequestMessage requestMessage) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 346
   at Elastic.Transport.HttpRequestInvoker.CreateHttpRequestMessage(Endpoint endpoint, RequestData requestData, Boolean isAsync) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 335
   at Elastic.Transport.HttpRequestInvoker.RequestCoreAsync[TResponse](Boolean isAsync, Endpoint endpoint, RequestData requestData, PostData postData, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 87
   at Elastic.Transport.DefaultRequestPipeline`1.CallProductEndpointCoreAsync[TResponse](Boolean isAsync, Endpoint endpoint, RequestData requestData, PostData postData, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\Pipeline\DefaultRequestPipeline.cs:line 188
   at Elastic.Transport.DistributedTransport`1.RequestCoreAsync[TResponse](Boolean isAsync, EndpointPath path, PostData data, OpenTelemetryData openTelemetryData, IRequestConfiguration localRequestConfiguration, CustomResponseBuilder customResponseBuilder, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\DistributedTransport.cs:line 186

Check failure on line 1 in tests\Elastic.Transport.IntegrationTests\Http\ApiCompatibilityHeaderTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results

ApiCompatibilityHeaderTests.AddsExpectedVendorInformationForRestApiCompaitbility

Elastic.Transport.UnexpectedTransportException : Object reference not set to an instance of an object.
---- System.NullReferenceException : Object reference not set to an instance of an object.
Raw output
at Elastic.Transport.DistributedTransport`1.ThrowUnexpectedTransportException[TResponse](Exception killerException, List`1 seenExceptions, Endpoint endpoint, TResponse response, RequestPipeline pipeline) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\DistributedTransport.cs:line 308
   at Elastic.Transport.DistributedTransport`1.RequestCoreAsync[TResponse](Boolean isAsync, EndpointPath path, PostData data, OpenTelemetryData openTelemetryData, IRequestConfiguration localRequestConfiguration, CustomResponseBuilder customResponseBuilder, CancellationToken cancellationToken)
   at Elastic.Transport.IntegrationTests.Http.ApiCompatibilityHeaderTests.AddsExpectedVendorInformationForRestApiCompaitbility() in D:\a\elastic-transport-net\elastic-transport-net\tests\Elastic.Transport.IntegrationTests\Http\ApiCompatibilityHeaderTests.cs:line 41
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
   at Elastic.Transport.HttpRequestInvoker.SetAuthenticationIfNeeded(Endpoint endpoint, RequestData requestData, HttpRequestMessage requestMessage) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 346
   at Elastic.Transport.HttpRequestInvoker.CreateHttpRequestMessage(Endpoint endpoint, RequestData requestData, Boolean isAsync) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 335
   at Elastic.Transport.HttpRequestInvoker.RequestCoreAsync[TResponse](Boolean isAsync, Endpoint endpoint, RequestData requestData, PostData postData, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 87
   at Elastic.Transport.DefaultRequestPipeline`1.CallProductEndpointCoreAsync[TResponse](Boolean isAsync, Endpoint endpoint, RequestData requestData, PostData postData, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\Pipeline\DefaultRequestPipeline.cs:line 188
   at Elastic.Transport.DistributedTransport`1.RequestCoreAsync[TResponse](Boolean isAsync, EndpointPath path, PostData data, OpenTelemetryData openTelemetryData, IRequestConfiguration localRequestConfiguration, CustomResponseBuilder customResponseBuilder, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\DistributedTransport.cs:line 186

Check failure on line 1 in TransferEncodingChunkedTests

See this annotation in the file changed.

@github-actions github-actions / Test Results

TransferEncodingChunkedTests.HttpClientSetsContentLengthWhenTransferEncodingChunkedFalse

Elastic.Transport.UnexpectedTransportException : Object reference not set to an instance of an object.
---- System.NullReferenceException : Object reference not set to an instance of an object.
Raw output
at Elastic.Transport.DistributedTransport`1.ThrowUnexpectedTransportException[TResponse](Exception killerException, List`1 seenExceptions, Endpoint endpoint, TResponse response, RequestPipeline pipeline) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\DistributedTransport.cs:line 308
   at Elastic.Transport.DistributedTransport`1.RequestCoreAsync[TResponse](Boolean isAsync, EndpointPath path, PostData data, OpenTelemetryData openTelemetryData, IRequestConfiguration localRequestConfiguration, CustomResponseBuilder customResponseBuilder, CancellationToken cancellationToken)
   at Elastic.Transport.TaskExtensions.EnsureCompleted[T](ValueTask`1 task) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Extensions\TaskExtensions.cs:line 38
   at Elastic.Transport.DistributedTransport`1.Request[TResponse](EndpointPath& path, PostData data, OpenTelemetryData& openTelemetryData, IRequestConfiguration localConfiguration, CustomResponseBuilder responseBuilder) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\DistributedTransport.cs:line 102
   at Elastic.Transport.DistributedTransport`1.Elastic.Transport.ITransport.Request[TResponse](EndpointPath& path, PostData postData, OpenTelemetryData& openTelemetryData, IRequestConfiguration localConfiguration, CustomResponseBuilder responseBuilder)
   at Elastic.Transport.TransportHttpMethodExtensions.Post[TResponse](ITransport transport, String pathAndQuery, PostData data) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\ITransportHttpMethodExtensions.cs:line 70
   at Elastic.Transport.IntegrationTests.Http.TransferEncodingChunkedTests.HttpClientSetsContentLengthWhenTransferEncodingChunkedFalse() in D:\a\elastic-transport-net\elastic-transport-net\tests\Elastic.Transport.IntegrationTests\Http\TransferEncodingChunckedTests.cs:line 102
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
   at Elastic.Transport.HttpRequestInvoker.SetAuthenticationIfNeeded(Endpoint endpoint, RequestData requestData, HttpRequestMessage requestMessage) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 346
   at Elastic.Transport.HttpRequestInvoker.CreateHttpRequestMessage(Endpoint endpoint, RequestData requestData, Boolean isAsync) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 335
   at Elastic.Transport.HttpRequestInvoker.RequestCoreAsync[TResponse](Boolean isAsync, Endpoint endpoint, RequestData requestData, PostData postData, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 87
   at Elastic.Transport.TaskExtensions.EnsureCompleted[T](ValueTask`1 task) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Extensions\TaskExtensions.cs:line 38
   at Elastic.Transport.HttpRequestInvoker.Request[TResponse](Endpoint endpoint, RequestData requestData, PostData postData) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 61
   at Elastic.Transport.IntegrationTests.Plumbing.Stubs.TrackingRequestInvoker.Request[TResponse](Endpoint endpoint, RequestData requestData, PostData postData) in D:\a\elastic-transport-net\elastic-transport-net\tests\Elastic.Transport.IntegrationTests\Plumbing\Stubs\TrackingRequestInvoker.cs:line 33
   at Elastic.Transport.DefaultRequestPipeline`1.CallProductEndpointCoreAsync[TResponse](Boolean isAsync, Endpoint endpoint, RequestData requestData, PostData postData, CancellationToken cancellationToken)
   at Elastic.Transport.TaskExtensions.EnsureCompleted[T](ValueTask`1 task) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Extensions\TaskExtensions.cs:line 38
   at Elastic.Transport.DefaultRequestPipeline`1.CallProductEndpoint[TResponse](Endpoint endpoint, RequestData requestData, PostData postData) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\Pipeline\DefaultRequestPipeline.cs:line 170
   at Elastic.Transport.DistributedTransport`1.RequestCoreAsync[TResponse](Boolean isAsync, EndpointPath path, PostData data, OpenTelemetryData openTelemetryData, IRequestConfiguration localRequestConfiguration, CustomResponseBuilder customResponseBuilder, CancellationToken cancellationToken)

Check failure on line 1 in TransferEncodingChunkedTests

See this annotation in the file changed.

@github-actions github-actions / Test Results

TransferEncodingChunkedTests.HttpClientSetsContentLengthWhenTransferEncodingChunkedHttpCompression

Elastic.Transport.UnexpectedTransportException : Object reference not set to an instance of an object.
---- System.NullReferenceException : Object reference not set to an instance of an object.
Raw output
at Elastic.Transport.DistributedTransport`1.ThrowUnexpectedTransportException[TResponse](Exception killerException, List`1 seenExceptions, Endpoint endpoint, TResponse response, RequestPipeline pipeline) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\DistributedTransport.cs:line 308
   at Elastic.Transport.DistributedTransport`1.RequestCoreAsync[TResponse](Boolean isAsync, EndpointPath path, PostData data, OpenTelemetryData openTelemetryData, IRequestConfiguration localRequestConfiguration, CustomResponseBuilder customResponseBuilder, CancellationToken cancellationToken)
   at Elastic.Transport.TaskExtensions.EnsureCompleted[T](ValueTask`1 task) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Extensions\TaskExtensions.cs:line 38
   at Elastic.Transport.DistributedTransport`1.Request[TResponse](EndpointPath& path, PostData data, OpenTelemetryData& openTelemetryData, IRequestConfiguration localConfiguration, CustomResponseBuilder responseBuilder) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\DistributedTransport.cs:line 102
   at Elastic.Transport.DistributedTransport`1.Elastic.Transport.ITransport.Request[TResponse](EndpointPath& path, PostData postData, OpenTelemetryData& openTelemetryData, IRequestConfiguration localConfiguration, CustomResponseBuilder responseBuilder)
   at Elastic.Transport.TransportHttpMethodExtensions.Post[TResponse](ITransport transport, String pathAndQuery, PostData data) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\ITransportHttpMethodExtensions.cs:line 70
   at Elastic.Transport.IntegrationTests.Http.TransferEncodingChunkedTests.HttpClientSetsContentLengthWhenTransferEncodingChunkedHttpCompression() in D:\a\elastic-transport-net\elastic-transport-net\tests\Elastic.Transport.IntegrationTests\Http\TransferEncodingChunckedTests.cs:line 114
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
   at Elastic.Transport.HttpRequestInvoker.SetAuthenticationIfNeeded(Endpoint endpoint, RequestData requestData, HttpRequestMessage requestMessage) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 346
   at Elastic.Transport.HttpRequestInvoker.CreateHttpRequestMessage(Endpoint endpoint, RequestData requestData, Boolean isAsync) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 335
   at Elastic.Transport.HttpRequestInvoker.RequestCoreAsync[TResponse](Boolean isAsync, Endpoint endpoint, RequestData requestData, PostData postData, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 87
   at Elastic.Transport.TaskExtensions.EnsureCompleted[T](ValueTask`1 task) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Extensions\TaskExtensions.cs:line 38
   at Elastic.Transport.HttpRequestInvoker.Request[TResponse](Endpoint endpoint, RequestData requestData, PostData postData) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 61
   at Elastic.Transport.IntegrationTests.Plumbing.Stubs.TrackingRequestInvoker.Request[TResponse](Endpoint endpoint, RequestData requestData, PostData postData) in D:\a\elastic-transport-net\elastic-transport-net\tests\Elastic.Transport.IntegrationTests\Plumbing\Stubs\TrackingRequestInvoker.cs:line 33
   at Elastic.Transport.DefaultRequestPipeline`1.CallProductEndpointCoreAsync[TResponse](Boolean isAsync, Endpoint endpoint, RequestData requestData, PostData postData, CancellationToken cancellationToken)
   at Elastic.Transport.TaskExtensions.EnsureCompleted[T](ValueTask`1 task) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Extensions\TaskExtensions.cs:line 38
   at Elastic.Transport.DefaultRequestPipeline`1.CallProductEndpoint[TResponse](Endpoint endpoint, RequestData requestData, PostData postData) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\Pipeline\DefaultRequestPipeline.cs:line 170
   at Elastic.Transport.DistributedTransport`1.RequestCoreAsync[TResponse](Boolean isAsync, EndpointPath path, PostData data, OpenTelemetryData openTelemetryData, IRequestConfiguration localRequestConfiguration, CustomResponseBuilder customResponseBuilder, CancellationToken cancellationToken)

Check failure on line 1 in TransferEncodingChunkedTests

See this annotation in the file changed.

@github-actions github-actions / Test Results

TransferEncodingChunkedTests.HttpClientUseProxyShouldBeFalseWhenDisabledAutoProxyDetection

Elastic.Transport.UnexpectedTransportException : Object reference not set to an instance of an object.
---- System.NullReferenceException : Object reference not set to an instance of an object.
Raw output
at Elastic.Transport.DistributedTransport`1.ThrowUnexpectedTransportException[TResponse](Exception killerException, List`1 seenExceptions, Endpoint endpoint, TResponse response, RequestPipeline pipeline) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\DistributedTransport.cs:line 308
   at Elastic.Transport.DistributedTransport`1.RequestCoreAsync[TResponse](Boolean isAsync, EndpointPath path, PostData data, OpenTelemetryData openTelemetryData, IRequestConfiguration localRequestConfiguration, CustomResponseBuilder customResponseBuilder, CancellationToken cancellationToken)
   at Elastic.Transport.TaskExtensions.EnsureCompleted[T](ValueTask`1 task) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Extensions\TaskExtensions.cs:line 38
   at Elastic.Transport.DistributedTransport`1.Request[TResponse](EndpointPath& path, PostData data, OpenTelemetryData& openTelemetryData, IRequestConfiguration localConfiguration, CustomResponseBuilder responseBuilder) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\DistributedTransport.cs:line 102
   at Elastic.Transport.DistributedTransport`1.Elastic.Transport.ITransport.Request[TResponse](EndpointPath& path, PostData postData, OpenTelemetryData& openTelemetryData, IRequestConfiguration localConfiguration, CustomResponseBuilder responseBuilder)
   at Elastic.Transport.TransportHttpMethodExtensions.Post[TResponse](ITransport transport, String pathAndQuery, PostData data) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\ITransportHttpMethodExtensions.cs:line 70
   at Elastic.Transport.IntegrationTests.Http.TransferEncodingChunkedTests.HttpClientUseProxyShouldBeFalseWhenDisabledAutoProxyDetection() in D:\a\elastic-transport-net\elastic-transport-net\tests\Elastic.Transport.IntegrationTests\Http\TransferEncodingChunckedTests.cs:line 62
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
   at Elastic.Transport.HttpRequestInvoker.SetAuthenticationIfNeeded(Endpoint endpoint, RequestData requestData, HttpRequestMessage requestMessage) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 346
   at Elastic.Transport.HttpRequestInvoker.CreateHttpRequestMessage(Endpoint endpoint, RequestData requestData, Boolean isAsync) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 335
   at Elastic.Transport.HttpRequestInvoker.RequestCoreAsync[TResponse](Boolean isAsync, Endpoint endpoint, RequestData requestData, PostData postData, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 87
   at Elastic.Transport.TaskExtensions.EnsureCompleted[T](ValueTask`1 task) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Extensions\TaskExtensions.cs:line 38
   at Elastic.Transport.HttpRequestInvoker.Request[TResponse](Endpoint endpoint, RequestData requestData, PostData postData) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 61
   at Elastic.Transport.IntegrationTests.Plumbing.Stubs.TrackingRequestInvoker.Request[TResponse](Endpoint endpoint, RequestData requestData, PostData postData) in D:\a\elastic-transport-net\elastic-transport-net\tests\Elastic.Transport.IntegrationTests\Plumbing\Stubs\TrackingRequestInvoker.cs:line 33
   at Elastic.Transport.DefaultRequestPipeline`1.CallProductEndpointCoreAsync[TResponse](Boolean isAsync, Endpoint endpoint, RequestData requestData, PostData postData, CancellationToken cancellationToken)
   at Elastic.Transport.TaskExtensions.EnsureCompleted[T](ValueTask`1 task) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Extensions\TaskExtensions.cs:line 38
   at Elastic.Transport.DefaultRequestPipeline`1.CallProductEndpoint[TResponse](Endpoint endpoint, RequestData requestData, PostData postData) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\Pipeline\DefaultRequestPipeline.cs:line 170
   at Elastic.Transport.DistributedTransport`1.RequestCoreAsync[TResponse](Boolean isAsync, EndpointPath path, PostData data, OpenTelemetryData openTelemetryData, IRequestConfiguration localRequestConfiguration, CustomResponseBuilder customResponseBuilder, CancellationToken cancellationToken)

Check failure on line 1 in TransferEncodingChunkedTests

See this annotation in the file changed.

@github-actions github-actions / Test Results

TransferEncodingChunkedTests.HttpClientUseProxyShouldBeTrueWhenEnabledAutoProxyDetection

Elastic.Transport.UnexpectedTransportException : Object reference not set to an instance of an object.
---- System.NullReferenceException : Object reference not set to an instance of an object.
Raw output
at Elastic.Transport.DistributedTransport`1.ThrowUnexpectedTransportException[TResponse](Exception killerException, List`1 seenExceptions, Endpoint endpoint, TResponse response, RequestPipeline pipeline) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\DistributedTransport.cs:line 308
   at Elastic.Transport.DistributedTransport`1.RequestCoreAsync[TResponse](Boolean isAsync, EndpointPath path, PostData data, OpenTelemetryData openTelemetryData, IRequestConfiguration localRequestConfiguration, CustomResponseBuilder customResponseBuilder, CancellationToken cancellationToken)
   at Elastic.Transport.TaskExtensions.EnsureCompleted[T](ValueTask`1 task) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Extensions\TaskExtensions.cs:line 38
   at Elastic.Transport.DistributedTransport`1.Request[TResponse](EndpointPath& path, PostData data, OpenTelemetryData& openTelemetryData, IRequestConfiguration localConfiguration, CustomResponseBuilder responseBuilder) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\DistributedTransport.cs:line 102
   at Elastic.Transport.DistributedTransport`1.Elastic.Transport.ITransport.Request[TResponse](EndpointPath& path, PostData postData, OpenTelemetryData& openTelemetryData, IRequestConfiguration localConfiguration, CustomResponseBuilder responseBuilder)
   at Elastic.Transport.TransportHttpMethodExtensions.Post[TResponse](ITransport transport, String pathAndQuery, PostData data) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\ITransportHttpMethodExtensions.cs:line 70
   at Elastic.Transport.IntegrationTests.Http.TransferEncodingChunkedTests.HttpClientUseProxyShouldBeTrueWhenEnabledAutoProxyDetection() in D:\a\elastic-transport-net\elastic-transport-net\tests\Elastic.Transport.IntegrationTests\Http\TransferEncodingChunckedTests.cs:line 76
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
   at Elastic.Transport.HttpRequestInvoker.SetAuthenticationIfNeeded(Endpoint endpoint, RequestData requestData, HttpRequestMessage requestMessage) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 346
   at Elastic.Transport.HttpRequestInvoker.CreateHttpRequestMessage(Endpoint endpoint, RequestData requestData, Boolean isAsync) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 335
   at Elastic.Transport.HttpRequestInvoker.RequestCoreAsync[TResponse](Boolean isAsync, Endpoint endpoint, RequestData requestData, PostData postData, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 87
   at Elastic.Transport.TaskExtensions.EnsureCompleted[T](ValueTask`1 task) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Extensions\TaskExtensions.cs:line 38
   at Elastic.Transport.HttpRequestInvoker.Request[TResponse](Endpoint endpoint, RequestData requestData, PostData postData) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 61
   at Elastic.Transport.IntegrationTests.Plumbing.Stubs.TrackingRequestInvoker.Request[TResponse](Endpoint endpoint, RequestData requestData, PostData postData) in D:\a\elastic-transport-net\elastic-transport-net\tests\Elastic.Transport.IntegrationTests\Plumbing\Stubs\TrackingRequestInvoker.cs:line 33
   at Elastic.Transport.DefaultRequestPipeline`1.CallProductEndpointCoreAsync[TResponse](Boolean isAsync, Endpoint endpoint, RequestData requestData, PostData postData, CancellationToken cancellationToken)
   at Elastic.Transport.TaskExtensions.EnsureCompleted[T](ValueTask`1 task) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Extensions\TaskExtensions.cs:line 38
   at Elastic.Transport.DefaultRequestPipeline`1.CallProductEndpoint[TResponse](Endpoint endpoint, RequestData requestData, PostData postData) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\Pipeline\DefaultRequestPipeline.cs:line 170
   at Elastic.Transport.DistributedTransport`1.RequestCoreAsync[TResponse](Boolean isAsync, EndpointPath path, PostData data, OpenTelemetryData openTelemetryData, IRequestConfiguration localRequestConfiguration, CustomResponseBuilder customResponseBuilder, CancellationToken cancellationToken)

Check failure on line 1 in TransferEncodingChunkedTests

See this annotation in the file changed.

@github-actions github-actions / Test Results

TransferEncodingChunkedTests.HttpClientUseTransferEncodingChunkedWhenTransferEncodingChunkedTrue

Elastic.Transport.UnexpectedTransportException : Object reference not set to an instance of an object.
---- System.NullReferenceException : Object reference not set to an instance of an object.
Raw output
at Elastic.Transport.DistributedTransport`1.ThrowUnexpectedTransportException[TResponse](Exception killerException, List`1 seenExceptions, Endpoint endpoint, TResponse response, RequestPipeline pipeline) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\DistributedTransport.cs:line 308
   at Elastic.Transport.DistributedTransport`1.RequestCoreAsync[TResponse](Boolean isAsync, EndpointPath path, PostData data, OpenTelemetryData openTelemetryData, IRequestConfiguration localRequestConfiguration, CustomResponseBuilder customResponseBuilder, CancellationToken cancellationToken)
   at Elastic.Transport.TaskExtensions.EnsureCompleted[T](ValueTask`1 task) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Extensions\TaskExtensions.cs:line 38
   at Elastic.Transport.DistributedTransport`1.Request[TResponse](EndpointPath& path, PostData data, OpenTelemetryData& openTelemetryData, IRequestConfiguration localConfiguration, CustomResponseBuilder responseBuilder) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\DistributedTransport.cs:line 102
   at Elastic.Transport.DistributedTransport`1.Elastic.Transport.ITransport.Request[TResponse](EndpointPath& path, PostData postData, OpenTelemetryData& openTelemetryData, IRequestConfiguration localConfiguration, CustomResponseBuilder responseBuilder)
   at Elastic.Transport.TransportHttpMethodExtensions.Post[TResponse](ITransport transport, String pathAndQuery, PostData data) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\ITransportHttpMethodExtensions.cs:line 70
   at Elastic.Transport.IntegrationTests.Http.TransferEncodingChunkedTests.HttpClientUseTransferEncodingChunkedWhenTransferEncodingChunkedTrue() in D:\a\elastic-transport-net\elastic-transport-net\tests\Elastic.Transport.IntegrationTests\Http\TransferEncodingChunckedTests.cs:line 90
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
   at Elastic.Transport.HttpRequestInvoker.SetAuthenticationIfNeeded(Endpoint endpoint, RequestData requestData, HttpRequestMessage requestMessage) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 346
   at Elastic.Transport.HttpRequestInvoker.CreateHttpRequestMessage(Endpoint endpoint, RequestData requestData, Boolean isAsync) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 335
   at Elastic.Transport.HttpRequestInvoker.RequestCoreAsync[TResponse](Boolean isAsync, Endpoint endpoint, RequestData requestData, PostData postData, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 87
   at Elastic.Transport.TaskExtensions.EnsureCompleted[T](ValueTask`1 task) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Extensions\TaskExtensions.cs:line 38
   at Elastic.Transport.HttpRequestInvoker.Request[TResponse](Endpoint endpoint, RequestData requestData, PostData postData) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 61
   at Elastic.Transport.IntegrationTests.Plumbing.Stubs.TrackingRequestInvoker.Request[TResponse](Endpoint endpoint, RequestData requestData, PostData postData) in D:\a\elastic-transport-net\elastic-transport-net\tests\Elastic.Transport.IntegrationTests\Plumbing\Stubs\TrackingRequestInvoker.cs:line 33
   at Elastic.Transport.DefaultRequestPipeline`1.CallProductEndpointCoreAsync[TResponse](Boolean isAsync, Endpoint endpoint, RequestData requestData, PostData postData, CancellationToken cancellationToken)
   at Elastic.Transport.TaskExtensions.EnsureCompleted[T](ValueTask`1 task) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Extensions\TaskExtensions.cs:line 38
   at Elastic.Transport.DefaultRequestPipeline`1.CallProductEndpoint[TResponse](Endpoint endpoint, RequestData requestData, PostData postData) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\Pipeline\DefaultRequestPipeline.cs:line 170
   at Elastic.Transport.DistributedTransport`1.RequestCoreAsync[TResponse](Boolean isAsync, EndpointPath path, PostData data, OpenTelemetryData openTelemetryData, IRequestConfiguration localRequestConfiguration, CustomResponseBuilder customResponseBuilder, CancellationToken cancellationToken)

Check failure on line 1 in tests\Elastic.Transport.IntegrationTests\Plumbing\Examples\EndpointIntegrationTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results

EndpointIntegrationTests.CanCallIntoEndpoint

Elastic.Transport.UnexpectedTransportException : Object reference not set to an instance of an object.
---- System.NullReferenceException : Object reference not set to an instance of an object.
Raw output
at Elastic.Transport.DistributedTransport`1.ThrowUnexpectedTransportException[TResponse](Exception killerException, List`1 seenExceptions, Endpoint endpoint, TResponse response, RequestPipeline pipeline) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\DistributedTransport.cs:line 308
   at Elastic.Transport.DistributedTransport`1.RequestCoreAsync[TResponse](Boolean isAsync, EndpointPath path, PostData data, OpenTelemetryData openTelemetryData, IRequestConfiguration localRequestConfiguration, CustomResponseBuilder customResponseBuilder, CancellationToken cancellationToken)
   at Elastic.Transport.IntegrationTests.Plumbing.Examples.EndpointIntegrationTests.CanCallIntoEndpoint() in D:\a\elastic-transport-net\elastic-transport-net\tests\Elastic.Transport.IntegrationTests\Plumbing\Examples\EndpointIntegrationTests.cs:line 27
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
   at Elastic.Transport.HttpRequestInvoker.SetAuthenticationIfNeeded(Endpoint endpoint, RequestData requestData, HttpRequestMessage requestMessage) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 346
   at Elastic.Transport.HttpRequestInvoker.CreateHttpRequestMessage(Endpoint endpoint, RequestData requestData, Boolean isAsync) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 335
   at Elastic.Transport.HttpRequestInvoker.RequestCoreAsync[TResponse](Boolean isAsync, Endpoint endpoint, RequestData requestData, PostData postData, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\TransportClient\HttpRequestInvoker.cs:line 87
   at Elastic.Transport.DefaultRequestPipeline`1.CallProductEndpointCoreAsync[TResponse](Boolean isAsync, Endpoint endpoint, RequestData requestData, PostData postData, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\Components\Pipeline\DefaultRequestPipeline.cs:line 188
   at Elastic.Transport.DistributedTransport`1.RequestCoreAsync[TResponse](Boolean isAsync, EndpointPath path, PostData data, OpenTelemetryData openTelemetryData, IRequestConfiguration localRequestConfiguration, CustomResponseBuilder customResponseBuilder, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\DistributedTransport.cs:line 186

Check failure on line 1 in tests\Elastic.Transport.IntegrationTests\OpenTelemetry\OpenTelemetryTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results

OpenTelemetryTests.ElasticsearchTagsShouldBeSet_WhenUsingTheElasticsearchRegistration

Expected activity.TagObjects {[db.system, elasticsearch], [elastic.transport.schema_url, https://opentelemetry.io/schemas/1.21.0], [elastic.transport.product.name, elasticsearch-net], [elastic.transport.product.version, 8.15.8+209187c4a99a0bdc72e9474a8c9931e5d1cd7899], [elastic.transport.version, 0.4.27-canary.0.3+2acb8571512186fefad54ad3c19a263cc24b7767], [user_agent.original, elasticsearch-net/0.4.27-canary.0.3+2acb8571512186fefad54ad3c19a263cc24b7767 (Microsoft Windows 10.0.20348; .NET 8.0.10; Elastic.Transport)], [http.request.method, GET], [url.full, http://127.0.0.1:52101/opentelemetry], [server.address, 127.0.0.1], [server.port, 52101]} to have an item matching (t.Key == "db.elasticsearch.cluster.name").
Raw output
at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
   at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
   at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
   at FluentAssertions.Collections.GenericCollectionAssertions`3.Contain(Expression`1 predicate, String because, Object[] becauseArgs)
   at Elastic.Transport.IntegrationTests.OpenTelemetry.OpenTelemetryTests.<ElasticsearchTagsShouldBeSet_WhenUsingTheElasticsearchRegistration>g__Assertions|3_0(Activity activity) in D:\a\elastic-transport-net\elastic-transport-net\tests\Elastic.Transport.IntegrationTests\OpenTelemetry\OpenTelemetryTests.cs:line 71
   at Elastic.Transport.IntegrationTests.OpenTelemetry.OpenTelemetryTests.<>c__DisplayClass3_0.<ElasticsearchTagsShouldBeSet_WhenUsingTheElasticsearchRegistration>b__2(Activity activity) in D:\a\elastic-transport-net\elastic-transport-net\tests\Elastic.Transport.IntegrationTests\OpenTelemetry\OpenTelemetryTests.cs:line 52
   at System.Diagnostics.SynchronizedList`1.EnumWithAction(Action`2 action, Object arg)
   at System.Diagnostics.Activity.Stop()
   at System.Diagnostics.Activity.Dispose()
   at Elastic.Transport.DistributedTransport`1.RequestCoreAsync[TResponse](Boolean isAsync, EndpointPath path, PostData data, OpenTelemetryData openTelemetryData, IRequestConfiguration localRequestConfiguration, CustomResponseBuilder customResponseBuilder, CancellationToken cancellationToken) in D:\a\elastic-transport-net\elastic-transport-net\src\Elastic.Transport\DistributedTransport.cs:line 299
   at Elastic.Transport.IntegrationTests.OpenTelemetry.OpenTelemetryTests.ElasticsearchTagsShouldBeSet_WhenUsingTheElasticsearchRegistration() in D:\a\elastic-transport-net\elastic-transport-net\tests\Elastic.Transport.IntegrationTests\OpenTelemetry\OpenTelemetryTests.cs:line 60
--- End of stack trace from previous location ---