【发布时间】:2017-03-22 04:11:47
【问题描述】:
我正在使用以下代码使用 Kitura 针对 CouchDB 执行 Swift 代码。
database.queryByView("high-priority-tasks", ofDesign: "polls", usingParameters: [], callback: { (json: JSON?, error :NSError?) in
if error != nil {
try! response.status(.internalServerError).end()
}
response.send(json: json!)
})
在我的 CouchDB 中,我创建了视图:
我收到以下错误:
po error?.localizedDescription!
▿ Optional<String>
- some : "Error: not_found, reason: missing"
【问题讨论】: