Skip to content

TypeError: Cannot read property 'data' of undefined since v10.3.1 #4313

Closed

Description

@jnizet

[REQUIRED] Environment info

firebase-tools: 10.3.1

Platform: macOS, Ubuntu

[REQUIRED] Test case

Hard to do. Here's however the URL of a PR on a public project that makes the tests fail because a firebase function running in the emulator is killed due to an internal error: jnizet/decouvertes-nature#110.

The stack trace is:

[emulators] i  functions: Beginning execution of "listUsers"
[emulators] ⚠  functions: TypeError: Cannot read property 'data' of undefined
[emulators]     at processBackground (/home/runner/work/decouvertes-nature/decouvertes-nature/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:550:24)
[emulators]     at invokeTrigger (/home/runner/work/decouvertes-nature/decouvertes-nature/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:640:19)
[emulators]     at handleMessage (/home/runner/work/decouvertes-nature/decouvertes-nature/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:742:15)
[emulators]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[emulators] ⚠  Your function was killed because it raised an unhandled error.

The source code of the function is that one: https://github.com/jnizet/decouvertes-nature/blob/renovate/firebase-tools-10.x/functions/src/users/users.ts#L51-L56

This function has never had any issue until v10.3.1

Activity

  1. google-oss-bot commented on Mar 16, 2022

    @google-oss-bot
    Collaborator

    This issue does not seem to follow the issue template. Make sure you provide all the required information.

  2. self-assigned this
    on Mar 16, 2022
  3. taeold commented on Mar 17, 2022

    @taeold
    Contributor

    Fix is released in 10.4.0! Thanks for reporting the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions