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
With node-mongo we usually get not very helpful stack trace, like this one:
level: "error"
message: "MongoServiceError: Document not found while updating. Query: {"_id":"5cc4a6f9361f3f0012151b4c"}
at MongoService.update (/app/node_modules/@auxilin/node-mongo/src/MongoService.js:123:13)
at process._tickCallback (internal/process/next_tick.js:68:7)"
timestamp: "2019-04-29T06:38:49.924Z"
How do we improve it to show where this error has happened?
The text was updated successfully, but these errors were encountered:
@anorsich As far as I understand the problem has appeared because Node.js can't capture stack trace inside an asynchronous function. But in Node 12 there is a flag --async-stack-traces in order to resolve the problem. But this flag should be used in the application itself.
With node-mongo we usually get not very helpful stack trace, like this one:
How do we improve it to show where this error has happened?
The text was updated successfully, but these errors were encountered: