Hello and welcome!
Considering I'm not familiar with Spring Data, I think it's unlikely that an endpoint such as index
is returning non json data, so my best bet here is that the url used to connect to the elasticsearch instance is wrong, and it's returning some non json error that the client cannot parse. Could you make sure you're using the correct url? You can try following the AWS guide, and if there's nothing new there then there's a similar solved discussion.