Neo4j 客户端上的聚合异常。ExecuteWithoutResults()

Neo4j 客户端上的聚合异常。ExecuteWithoutResults(),neo4j,neo4jclient,Neo4j,Neo4jclient,我试图用一个参数化的Cypher create请求创建许多节点,在本例中大约25000个节点。在大约30秒后执行此操作时,将抛出System.AggregateException。 我不知道该如何避免,也不知道该如何应对 public void createFiles(File[] files) { client.Cypher .Create("(file:FILE {newFiles})") .WithParam("newFiles", file

我试图用一个参数化的Cypher create请求创建许多节点,在本例中大约25000个节点。在大约30秒后执行此操作时,将抛出System.AggregateException。 我不知道该如何避免,也不知道该如何应对

public void createFiles(File[] files)
{
    client.Cypher
          .Create("(file:FILE {newFiles})")
          .WithParam("newFiles", files)
          .ExecuteWithoutResults();
}
File[]files是一个对象数组,大约有25.000个对象,每个对象有6个字符串属性

我试图将数组拆分为更小的数组,每个数组中有1000个对象,并通过它们进行foreach,但也抛出了System.AggregateException

例外情况如下:

    System.AggregateException: One or more errors occurred. ---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
   --- End of inner exception stack trace ---
   at Neo4jClient.GraphClient.SendHttpRequest(HttpRequestMessage request, String commandDescription, HttpStatusCode[] expectedStatusCodes) in ...Neo4jClient\
raphClient.cs:line 138
   at Neo4jClient.GraphClient.Neo4jClient.IRawGraphClient.ExecuteCypher(CypherQuery query) in ...\Neo4jClient\GraphClient.cs:line 843
   at Neo4jClient.Cypher.CypherFluentQuery.ExecuteWithoutResults() in ...\Neo4jClient\Cypher\CypherFluentQuery.cs:line 322
   at FileSystemSizeAnalyser.Database.createFolders(File[] files) in ...\FileSystemSiz
Analyser\Database.cs:line 65
---> (Inner Exception #0) System.Threading.Tasks.TaskCanceledException: A task was canceled.<---
有没有建议去哪里看以及如何避免这种例外?此外,是否有方法重新发送请求直到成功


在Neo4jClient 1.0.0.656上,异常说明了什么?用于组合多个单独的异常,例如并行运行的异常。您需要查看其InnerExceptions属性(不是复数)才能查看实际的异常。向问题添加了异常您是否可以控制请求的超时选项?看起来像是超时问题。如果直接使用HTTP POST到事务性密码端点会发生什么?它来回流动。我认为这只是客户建立所有内容并一次性发送过来。在一次调用中创建25k个节点不应该成为问题。