Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no active connection found: no Elasticsearch node available #34

Open
cedricve opened this issue Feb 14, 2021 · 1 comment
Open

no active connection found: no Elasticsearch node available #34

cedricve opened this issue Feb 14, 2021 · 1 comment

Comments

@cedricve
Copy link

I'm using ELK (8) but the library returns.

no active connection found: no Elasticsearch node available

When browsing to the elasticsearch endpoint it does return a valid json response.

{
name: "elasticsearch-master-1",
cluster_name: "elasticsearch",
cluster_uuid: "ZqDoaZLyTe6O-rB6HQbscA",
version: {
number: "8.0.0-SNAPSHOT",
build_flavor: "default",
build_type: "docker",
build_hash: "747198ffed9b10273463367cf6ccc7ac5bfa077e",
build_date: "2021-02-12T18:02:06.143916Z",
build_snapshot: true,
lucene_version: "8.8.0",
minimum_wire_compatibility_version: "7.12.0",
minimum_index_compatibility_version: "7.0.0"
},
tagline: "You Know, for Search"
}

@faizalpribadi
Copy link

You need to set the sniff method on client like this :

elastic.NewClient(elastic.SetURL("http://localhost:9200"), elastic.SetSniff(false), elastic.SetBasicAuth("elastic", "changeme"))
	

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants