1

I run a Cypher query CALL apoc.load.json("URL") and Neo4j returns this error message:

Can't read url ... as json: Read timed out

How to set timeout for this?

Bruno Peres
  • 15,845
  • 5
  • 53
  • 89
kien bui
  • 1,760
  • 2
  • 17
  • 33

1 Answers1

2

There is a configuration to put into your neo4j.conf file :

apoc.http.timeout.connect=10000

Value is in millisecond. You can take a look at the code for more information : https://github.com/neo4j-contrib/neo4j-apoc-procedures/blob/b9a4e587265e4f168098e2d1e6135ff19985fc59/src/main/java/apoc/util/Util.java#L234

NB: There is also a apoc.http.timeout.read params.

Cheers

logisima
  • 7,340
  • 1
  • 18
  • 31