felixge / felixge/node-couchdb

removeDoc closes socket?

未关闭
#48 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
363
派生
68
PR 合并指标
30 天内没有已合并 PR

描述

Trying to delete a load of docs in a loop, the first works but then it throws:

```
db.request('/_design/my-view', query, function(err, data) {
data.rows.forEach(function (e) {
db.removeDoc(e.doc._id, e.doc._rev, console.log);
});
});
```

output:

```
null { ok: true,
 id: '90a8b799188655eb73656f01818a91fe',
 rev: '2-79f3763a77a0749f6290f6db2733d50f' }

events.js:66
       throw arguments[1]; // Unhandled 'error' event
                      ^
Error: socket hang up
   at createHangUpError (http.js:1263:15)
   at Socket.socketOnEnd [as onend] (http.js:1351:23)
   at TCP.onread (net.js:418:26)
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。