Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Trigger fails due to destructuring undefined #1574

@Sahtair

Description

@Sahtair

Thanks for stopping by to let us know something could be better!

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

  1. Is this a client library issue or a product issue?
    This is the client library for . We will only be able to assist with issues that pertain to the behaviors of this library. If the issue you're experiencing is due to the behavior of the product itself, please visit the Support page to reach the most relevant engineers.

  2. Did someone already solve this?

  1. Do you have a support contract?
    Please create an issue in the support console to ensure a timely response.

If the support paths suggested above still do not result in a resolution, please provide the following details.

Environment details

  • OS: macOS 11.4
  • Node.js version: v14.17.0
  • npm version: v6.14.13
  • @google-cloud/firestore version: 4.14.0

Steps to reproduce

Sadly we are not sure how to reproduce as we cannot get the document id that causes this issue. Here is a provided stack trace of the issue.

TypeError: Cannot read property 'seconds' of undefined at Function.fromProto (/workspace/node_modules/@google-cloud/firestore/build/src/timestamp.js:136:47)
at Firestore.snapshot_ (/workspace/node_modules/@google-cloud/firestore/build/src/index.js:715:57)
at beforeSnapshotConstructor (/workspace/node_modules/firebase-functions/lib/providers/firestore.js:139:30)
at changeConstructor (/workspace/node_modules/firebase-functions/lib/providers/firestore.js:143:49)
at cloudFunction (/workspace/node_modules/firebase-functions/lib/cloud-functions.js:133:34)

Making sure to follow these steps will guarantee the quickest resolution possible.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: firestoreIssues related to the googleapis/nodejs-firestore API.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions