Skip to content

Issue with Multiple Triggering of Cloud Functions Deployed in v12.8.0 Due to FIRESTORE_PREFER_REST Env Variable #202

@davidkychen

Description

@davidkychen

This may be a Firebase issue.
In the recent update to version 12.8.0, the environment variable FIRESTORE_PREFER_REST is being automatically set to true. We've observed a critical issue where this change is causing some longer-running cloud functions, which are hosted through Firebase hosting, to trigger multiple times (observed at least 10 times more than expected).

This behavior of multiple triggers does not occur when the function is invoked directly through its original Cloud Function trigger URL. However, the issue arises when the function is called via the Firebase hosting route.

A temporary workaround we found is to unset the FIRESTORE_PREFER_REST variable or using an older version to deploy, which resolves the issue of multiple triggers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions