neo4j cypher json给http 500服务器错误 [英] neo4j cypher json giving http 500 server erro

查看:495
本文介绍了neo4j cypher json给http 500服务器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在neo4j中创建几个节点,因为我在c ++程序中使用json和curl。

I need to create a few nodes in neo4j and for that I am using json and curl inside my c++ program.

这是请求和响应

About to connect() to localhost port 7474 (#0)
Trying ::1...
Connection refused
Trying 127.0.0.1...
Connected to localhost (127.0.0.1) port 7474 (#0)
 POST /db/data/cypher HTTP/1.1
Host: localhost:7474
Accept: */*
Content-Type: application/json
Content-Length: 4294967295
Expect: 100-continue

HTTP/1.1 100 Continue
{
   "params" : {
      "props" : {
         "LocalAsNumber" : 0,
         "NodeDescription" : "10TiMOS-B-4.0.R2 ",
         "NodeId" : "10.227.28.95",
         "NodeName" : "BLR_WAO_SARF7"
      }
   },
   "query" : "CREATE (n:Router { props }) RETRUN n"
}


HTTP/1.1 500 Server Error
Content-Type: text/html; charset=ISO-8859-1
Cache-Control: must-revalidate,no-cache,no-store
Content-Length: 0
Server: Jetty(9.0.5.v20130815)
HTTP error before end of send, stop sending

关闭连接0

我总是收到此500服务器错误

推荐答案

查看您的查询:

"CREATE (n:Router { props }) RETRUN n"

应该是RETURN:

"CREATE (n:Router { props }) RETURN n"

这篇关于neo4j cypher json给http 500服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆