nano icon indicating copy to clipboard operation
nano copied to clipboard

Handle ECONNRESET errors

Open fhahne opened this issue 9 years ago • 3 comments

I may be missing something here, but it seems that nano is not handling ECONNRESET errors, or other sorts of socket hangups. I assume that one would want to attach an error listener to the request object in order to do so. Since that is all encapsulated in the module I am not quite sure how to archive that. Any suggestions?

fhahne avatar Jun 08 '16 16:06 fhahne

+1 I am also getting similar errors. What is the correct strategy for adding an error handler to address these econnreset errors? Also, any suggestions what the cause could be?

bmiller59 avatar Sep 08 '16 18:09 bmiller59

can you do something like

require('nano')({
request: function () {
  // request wrapper with special handling
}
})

0x1mason avatar Sep 13 '16 20:09 0x1mason

This repository has been merged into apache/couchdb-nano, please continue the discussion here

carlosduclos avatar Mar 17 '17 14:03 carlosduclos