Related issues
[REQUIRED] Version info
node: 12
firebase-functions: 3.15.4
firebase-tools:
firebase-admin: 9.11.1
[REQUIRED] Test case
- Return a
DocumentReference data in JSON format from a cloud function
[REQUIRED] Steps to reproduce
- Trigger a cloud function to return a document data that has a
DocumentReference field in it
[REQUIRED] Expected behavior
- The document data to be returned as JSON correctly
[REQUIRED] Actual behavior
- Getting error when encoding the response in JSON format.
Unhandled error Error: Data cannot be encoded in JSON: path => firestore.doc(path)
Were you able to successfully deploy your functions?
Yes
Note: The error disappeared after downgrading firebase-functions to 3.14.1. The error also will not happen if I remove the DocumentReference field from the response data
Related issues
[REQUIRED] Version info
node: 12
firebase-functions: 3.15.4
firebase-tools:
firebase-admin: 9.11.1
[REQUIRED] Test case
DocumentReferencedata in JSON format from a cloud function[REQUIRED] Steps to reproduce
DocumentReferencefield in it[REQUIRED] Expected behavior
[REQUIRED] Actual behavior
Were you able to successfully deploy your functions?
Yes
Note: The error disappeared after downgrading
firebase-functionsto3.14.1. The error also will not happen if I remove theDocumentReferencefield from the response data