[Elasticsearch exception [type=security_exception, reason=missing authentication token for REST request [/***/**/**]]]

1.server ===> es 6.2.2(x-pack enabled)
2.app ===> springboot 2.0.5.RELEASE
3.app ===> elasticsearch-rest-high-level-client 6.2.2(work in springboot)

after app start over without any error.try to test interface i got this:

2018-09-30 17:16:05.307 WARN 11124 --- [nio-8080-exec-1] .m.m.a.ExceptionHandlerExceptionResolver : Resolved exception caused by handler execution: ElasticsearchStatusException[Elasticsearch exception [type=security_exception, reason=missing authentication token for REST request [///**]]]

is anyone kown how to set the authentication ?

Please don't post images of text as they are hardly readable and not searchable.

Instead paste the text and format it with </> icon. Check the preview window.

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