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.

Error: Argument "updateFunction" is not a valid function. #574

@jineshshah36

Description

@jineshshah36

Please run down the following list and make sure you've tried the usual "quick fixes":

If you are still having issues, please be sure to include as much information as possible:

Environment details

  • OS:
  • Node.js version: 10.15.1
  • npm version:
  • @google-cloud/firestore version: 1.0.2

Steps to reproduce

  1. Call firestore.runTransaction with an async function
  2. You will get the error Error: Argument "updateFunction" is not a valid function.
  3. The issue is that isFunction checks for [object Function] when an async function produces [object AsyncFunction]

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

Thanks!

Metadata

Metadata

Labels

api: firestoreIssues related to the googleapis/nodejs-firestore API.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions