更新:确保正确设置框架已解决问题
我正在尝试从IOS为我的Neo4j数据库创建一个节点。
这是初始连接后的代码。
func createNode() {
let node = Node()
let randomString: String = NSUUID().UUIDString
node.setProp("name", propertyValue: "Matt Winfrey" + randomString)
node.setProp("born", propertyValue: "1991" + randomString)
node.addLabel("Person")
theo.createNode(node, completionBlock: {(node, error) in
println("new node \(node,error)")
});
}
我收到500错误
new node (nil, Optional(Error Domain=com.theo.network.error Code=-1 "The operation couldn’t be completed. (com.theo.network.error error -1.)" UserInfo=0x7ff2b1fa9290
{ status code: 500, headers {
"Cache-Control" = "must-revalidate,no-cache,no-store";
Connection = "keep-alive";
"Content-Length" = 0;
"Content-Type" = "text/html; charset=ISO-8859-1";
Date = "Tue, 19 May 2015 19:44:42 GMT";
Server = "nginx/1.7.6";
} }, TheoResponseCode=500, NSLocalizedDescriptionKey=There was an error processing the request}))
任何帮助都会很棒。