I deployed my cluster on the elastic cloud.
All these days before deplyoing I worked on it locally ex: host: 'localhost:9200'
platform I use is Node js (elasticsearch.js) package.
But now whenever I am trying to make a connection with elastic cloud I keep getting an error.
The line was commented-out the line in the code that you shared, and connecting to localhost is the default, so this error is at least consistent with commenting that line out.
Could you share the code that you're using here, without any commenting, but redacting your cluster ID and password and making no further changes? You can format code neatly using the </> formatting button.
I'm sorry, I'm not enough of a Javascript expert to guess where in your plumbing the settings are getting lost. I tried putting those two snippets into files and running them with node and they seem to be missing pieces. I cannot reproduce what you're seeing with the information you've given so far. Can you share a minimal, but complete and self-contained, example that I can run myself?
I note that according to this page you can set a log property on the client. Perhaps this'll help point in the right direction.
Hi David Turner
I completely erased all the elasticsearch settings.
cloned the project again and now added elasticsearch configurations.It connected successfully.
But now whenever i am indexing anything into it.
it gives this error.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.