Closed alfla closed 5 years ago
Thanks for the report. What version of NEST and Elasticsearch.Net are you using?
NEST 6.1.0 Elasticsearch.Net 6.1.0
I just tried running the tests with that version and I'm unable to reproduce the problem. You could try adding
config.DisableDirectStreaming();
The entire body has to be read in order to generate the request signature so streaming isn't an option when you need to enable request signing.
I have the same error.
Sorry, I don't know how to reproduce this problem. I'm going to close the issue since it's so old. If you are still experiencing the problem with the latest version feel free to re-open. Thanks.
Hello,
I have next error, when I try to ping my connection with elasticSearch.
Unsuccessful low level call on HEAD: /
Audit trail of this API call:
OriginalException: Elasticsearch.Net.ElasticsearchClientException: Request failed to execute
Request:
<Request stream not captured or already read to completion by serializer. Set DisableDirectStreaming() on ConnectionSettings to force it to be set on the response.>
Response:
<Response stream not captured or already read to completion by serializer. Set DisableDirectStreaming() on ConnectionSettings to force it to be set on the response.>
TestCode private static string Region => TestConfig.AwsSettings.Region; private static ICredentialsProvider Credentials => new StaticCredentialsProvider(TestConfig.AwsSettings); [Test] public void Ping_should_work() { var httpConnection = new AwsHttpConnection(Region, Credentials); var pool = new SingleNodeConnectionPool(new Uri(TestConfig.Endpoint)); var config = new ConnectionConfiguration(pool, httpConnection); var client = new ElasticLowLevelClient(config); var response = client.Ping();
Assert.AreEqual(200, response.HttpStatusCode.GetValueOrDefault(-1));