Skip to content


HTTP error detection #49

lperrinfano opened this Issue · 0 comments

1 participant


The code (near line 232) that detects CouchDB HTTP errors seems dangerous to me:

          if ('error' in json) {
            cbFired = true;
            return cb && cb(json);

If I save a document with an 'error' attribute, node-couchdb will raise an error every time I fetch it. You should rely on the HTTP status code instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.