creationix / couch-client

A minimal CouchDB client that easy and powerful
MIT License
101 stars 9 forks source link

_bulk_docs response undefined #28

Open cschram opened 13 years ago

cschram commented 13 years ago

Every once in awhile when using save() my program crashes with this error:

node.js:183
        throw e; // process.nextTick error, or 'error' event on first tick
        ^
TypeError: Cannot read property 'error' of undefined
    at /root/bro-bot/node_modules/couch-client/lib/couch-client.js:134:20
    at ClientRequest.errorHandler (/root/bro-bot/node_modules/couch-client/lib/couch-client.js:47:23)
    at ClientRequest.emit (events.js:64:17)
    at Socket.<anonymous> (http.js:1216:11)
    at Socket.emit (events.js:64:17)
    at Array.<anonymous> (net.js:833:27)
    at EventEmitter._tickCallback (node.js:175:26)
cschram commented 13 years ago

This actually happens quite often now.

jimt commented 12 years ago

This also happens sporadically to me, but I've yet to narrow down what triggers it.