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

[repository] ES http plugin 401 #896

Closed
anchsu opened this Issue Nov 21, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@anchsu

anchsu commented Nov 21, 2017

Using es http plugin with Elasticsearch protected by nginx

Expected Behavior
Use Authorization when pushing template.

Current Behavior
Caused by: io.gravitee.repository.exceptions.TechnicalException: Impossible to call Elasticsearch PUT /_template/gravitee. Response is 401
at io.gravitee.repository.elasticsearch.ElasticsearchComponent.ensureTemplate(ElasticsearchComponent.java:357)

Possible Solution

Use Authorization when pushing template. method addCommonHeaders(req);

Your Environment

Version used: 1.11.2
gravitee-repository-elasticsearch-http-1.11.0.zip

brasseld added a commit to gravitee-io-community/gravitee-repository-elasticsearch that referenced this issue Nov 21, 2017

@brasseld brasseld self-assigned this Nov 21, 2017

@brasseld brasseld added the type: bug label Nov 21, 2017

@brasseld brasseld added this to the 1.11.3 milestone Nov 21, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment