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
Hello! I've got an error "TypeError: Cannot set property message of Error which has only a getter"
Complete stacktrace:
at node_modules/tslog/dist/cjs/BaseLogger.js:179:45
at Array.reduce (<anonymous>)
at Logger._recursiveCloneAndMaskValuesOfKeys (node_modules/tslog/dist/cjs/BaseLogger.js:178:70)
at node_modules/tslog/dist/cjs/BaseLogger.js:157:25
at Array.map (<anonymous>)
at Logger._mask (node_modules/tslog/dist/cjs/BaseLogger.js:156:22)
at Logger.log (node_modules/tslog/dist/cjs/BaseLogger.js:99:24)
at Logger.error (node_modules/tslog/dist/cjs/index.js:29:22)
so, what we have - firebase-admin generates a special Error object with a "message" property which has only a getter, while tslog tries to modify this object at
It's really unexpected when the logging library mutates input data, so it looks like a bug. @terehov please, let me know if I can help you debug this case
The text was updated successfully, but these errors were encountered:
Hello! I've got an error "TypeError: Cannot set property message of Error which has only a getter"
Complete stacktrace:
The code is simple:
so, what we have - firebase-admin generates a special Error object with a "message" property which has only a getter, while tslog tries to modify this object at
tslog/src/BaseLogger.ts
Line 224 in 0e751a5
It's really unexpected when the logging library mutates input data, so it looks like a bug. @terehov please, let me know if I can help you debug this case
The text was updated successfully, but these errors were encountered: