Skip to content

Connection Errors when Connecting to ElasticSearch With Basic Authentication #2117

@gloriak9

Description

@gloriak9

Description
I am working with elastic search and trying to create a pygeoapi records implementation backed by elasticsearchCatalogue. But I keep on getting connection errors . This is how I am connecting and authenticating it

data: http://username:password@localhost:9200/index
and also tried this
data: http://${MY_USERNAME}:${MY_PASSWORD}@localhost:9200/index

But in both cases I got connection error: pygeoapi.provider.base.ProviderConnectionError: Cannot connect to Elasticsearch.

The same thing happens when i try to create a features implementation using elastic search, generaly its a connection to the elastic search index problem.

For general information, I am working with docker containers for elastic search& kibana interface. Has anyone else faced this issue and how did you go about it?

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions