Closed kdawgwilk closed 1 month ago
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
It looks like this might be because the firebase-functions/logger
has special case handling for errors passed as the context object but how do i add my own context to that?
I ended up using the serialize-error
library and handling the serialization myself
Related issues
[REQUIRED] Version info
node:
v18.19.1
firebase-functions:
4.9.0
firebase-tools:
13.3.1
firebase-admin:
12.1.0
[REQUIRED] Test case
index.ts
[REQUIRED] Steps to reproduce
testErrorContext
[REQUIRED] Expected behavior
The
jsonPayload.error
field would have the serialized error info[REQUIRED] Actual behavior
The
jsonPayload.error
field comes through asWere you able to successfully deploy your functions?
Yes