最初,当我使用neo4j数据库访问应用程序接口时,它工作正常,但在一段时间后,当我尝试访问应用程序接口时,我得到以下错误:
Failed after retried for 6 times in 30000 ms. Make sure that your database is online and retry again.
我在API中使用以下代码进行数据库连接:
var neo4jClient = new BoltGraphClient(new Uri(connectionUrl), Username, Password);
neo4jClient.ConnectAsync();
services.AddSingleton<IBoltGraphClient>(neo4jClient);
发布于 2021-06-07 17:37:08
这里没有真正的编码答案,唯一让我印象深刻的是在neo4jClient.ConnectAsync()
调用之前缺少await
。
除此之外,你还需要检查连接、网络等。如果是本地的--那么我不确定--我猜你可以尝试/捕获它--但这是在幕后发生的事情。
https://stackoverflow.com/questions/67832244
复制相似问题