bcuff / elasticsearch-net-aws

Add-on to Elasticsearch.Net & NEST for using AWS's elasticsearch service.
Apache License 2.0
72 stars 27 forks source link

Error, try to ping ES connection. #37

Closed alfla closed 5 years ago

alfla commented 6 years ago

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:

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));

    }
bcuff commented 6 years ago

Thanks for the report. What version of NEST and Elasticsearch.Net are you using?

alfla commented 6 years ago

NEST 6.1.0 Elasticsearch.Net 6.1.0

bcuff commented 6 years ago

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.

alfla commented 6 years ago

I have the same error.

bcuff commented 5 years ago

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.