Nodejs SDK 2.4.1 is crashing on deletion of secondary N1QL querying errors

Apparently due to the following code which was introduced in 2.4.1.

      delete jsonError.errors;

TypeError: Cannot convert undefined or null to object
    at /Users/aterem/repos/service/node_modules/couchbase/lib/bucket.js:716:14

I’ve raise my concerns about this line, when it was still in code review, as it is clearly unneeded and breaks backward compatible. Apparently to be ignored…
See point 1 at

You can also leave your comments in our code review system: (github is mostly serves as mirror).

I can’t, as you need permissions for that

you should log in using your github account, and commenting should be allowed

Hey @aterem,

Your comments were definitely not ignored, however in this case the original behaviour was actually a bug, and it was always intended that the SDK would be returning those kinds of errors as part of the error callbacks. As this was a bug, we decided to include the fix in the 2.4 series, the bug that came from this was a bit of a parallel issue that came up and has since been fixed (to be merged into 2.4.2).

Cheers, Brett