2014-03-27 46 views
0

我需要在neo4j中創建幾個節點,並且我在我的C++程序中使用json和curl。neo4j cypher json給http 500服務器erro

這是我回來的請求和回覆。

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服務器錯誤」。查詢有問題嗎?

回答

1

看看你的查詢:

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

它應該是RETURN:

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