ConnectionError: connect ECONNREFUSED

I've configured Elasticsearch in k8s with a separate master, data, and ingest nodes. is set to true
I'm trying to connect a Node.js application to Elasticsearch using Elasticsearch-js client but it fails to connect to elastic.
Error looks like this:
ConnectionError: connect ECONNREFUSED
it appears on
There are no other errors logged from my Node.js application, nor errors in ingest nodes logs.

I tried to generate passwords for default users and use basic authentication connecting to elastic:
const elasticClient = new Client({ node: ""});
But with basic auth - there is the same error.

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