我在连接到neo4j数据库时遇到问题。
这是我的代码:
private GraphClient client;
public Neo4j()
{
client = new GraphClient(new Uri("http://localhost:7474/db/mydb"), "neo4j", "123");
client.Connect();
}
这是我尝试连接时遇到的错误:
执行请求时收到意外的HTTP状态
响应状态为:404未找到
Neo4j的响应(可能包括有用的详细信息!(为:".
我做错了什么吗?
提前谢谢大家。
我假设您正在使用这个库:https://github.com/Readify/Neo4jClient
你的Neo4j url是错误的,你应该使用这个:GraphClient(new Uri("http://localhost:7474/db/data"));