felixge / felixge/node-couchdb

removeDoc closes socket?

Aperta
#48 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
363
Fork
68
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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)
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.