Hi,
I am using this version of elastic client.
<dependency>
<groupId>org.elasticsearch.client</groupId>
<artifactId>elasticsearch-rest-client</artifactId>
<version>7.17.9</version>
</dependency>
I wrote standalone java app with password auth and it worked fine to put messages to ES.
I used same code but with ouath token, I am not getting any error while sending message but that message is not visible anywhere. I am not getting where its lost.
Using performRequestAsync method in both cases.
Only difference is When I use oauth, app runs under tomcat container.
When I copied token and ran code locally, it gave me 201 - response but again, clueless on where is my doc.