cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

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
2 REPLIES 2

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:
https://www.elastic.co/guide/en/elasticsearch/reference/current/anonymous-access.html