Errors while connecting neo4j and elastic using APOC

Getting the below error in neo4j while trying to connect in elastic

Neo.ClientError.Procedure.ProcedureCallFailed: Failed to invoke procedure `apoc.es.stats`: Caused by: java.lang.RuntimeException: Can't read url or key http://*.*.*.*:9200/_stats as json: Server returned HTTP response code: 401 for URL: http://*.*.*.*:9200/_stats

Hi,
have you tried looking into elastic forum ?

Does it work when you run curl -X GET "localhost:9200/_stats" ?

I´ve solved this problem with an annonymous acces and followed this article: