You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/Users/emmanuelodeke/[redacted]/node_modules/newrelic/lib/transaction/tracer/index.js:168
throw err
^
TypeError: Object.keys called on non-object
at Function.keys (native)
at module.exports (/Users/emmanuelodeke/[redacted]/node_modules/mongoose/lib/services/updateValidators.js:56:36)
at Query._findAndModify (/Users/emmanuelodeke/[redacted]/node_modules/mongoose/lib/query.js:1651:18)
at Query.findOneAndUpdate (/Users/emmanuelodeke/[redacted]/node_modules/mongoose/node_modules/mquery/lib/mquery.js:2118:15)
at /Users/emmanuelodeke/[redacted]/node_modules/mongoose/node_modules/kareem/index.js:156:8
at /Users/emmanuelodeke/[redacted]/node_modules/mongoose/node_modules/kareem/index.js:18:7
at wrapped (/Users/emmanuelodeke/[redacted]/node_modules/newrelic/lib/transaction/tracer/index.js:157:28)
at wrapped (/Users/emmanuelodeke/[redacted]/node_modules/newrelic/lib/transaction/tracer/index.js:157:28)
at process._tickDomainCallback (node.js:486:13)
at process.wrappedFunction (/Users/emmanuelodeke/[redacted]/node_modules/newrelic/lib/transaction/tracer/index.js:262:51)
I have been able to trace the cause of the crash and it is that Object.keys is being invoked on null because the previous check of typeof null === 'object' passes.
I'll be submitting a patch to fix it.
The text was updated successfully, but these errors were encountered:
gives
I have been able to trace the cause of the crash and it is that Object.keys is being invoked on
null
because the previous check oftypeof null === 'object'
passes.I'll be submitting a patch to fix it.
The text was updated successfully, but these errors were encountered: