Can't connect to elastic cloud instance - NEST Client

Hello,
I wanted to try out elastic cloud (free trial) today but I'm having issues connecting to it.
I set up simple console application in c#
net 5
and latest NEST client

            var cloudId = "cloudid:xxxxxxxx";
            var credentials = new BasicAuthenticationCredentials("elastic", "xxxxxxxxxxxx");
            var pool = new CloudConnectionPool(cloudId, credentials);
            var settings = new ConnectionSettings(pool)
                .ThrowExceptions()
                .EnableDebugMode();

            var client = new ElasticClient(settings);

these are the errors that I'm getting
Error: The client is unable to verify that the server is Elasticsearch due to an unsuccessful product check call. Some functionality may not be compatible if the server is running an unsupported product
Error2: Authentication failed because the remote party sent a TLS alert: 'HandshakeFailure'.

What am I doing wrong ?

Thanks

1 Like

Hey, I had same issue.

I'm using default docker-compose for elastic search and kibana from docs.

Solution for me was to use http protocol in connection string, instead of https.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.