Skip to content

Callable function don't work on emulator since 10.3.1 #4320

Closed

Description

@gpfister

[REQUIRED] Environment info

firebase-tools: 10.3.1

Platform: Ubuntu 20.04

[REQUIRED] Test case

Call a callable function (using the regular API, not the Admin API) using firebase-tools 10.3.1 (it works on 10.3.0).

[REQUIRED] Steps to reproduce

Expose a callable function on the emulator, create a user and call the function after authenticating.

[REQUIRED] Expected behavior

The function should be called.

[REQUIRED] Actual behavior

The function doesn't get called, an unhandled execption.

⚠  functions: TypeError: Cannot read properties of undefined (reading 'data')
    at processBackground (./node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:550:24)
    at invokeTrigger (./node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:640:19)
    at handleMessage (./node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:742:15)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
⚠  Your function was killed because it raised an unhandled error.

Activity

  1. sceee commented on Mar 17, 2022

    @sceee
    Contributor

    This was actually already adressed (and probably fixed) in #4314 but not yet released.

  2. gpfister commented on Mar 17, 2022

    @gpfister
    Author

    @sceee, thanks, I this is also a duplicate of #4313.

  3. taeold commented on Mar 17, 2022

    @taeold
    Contributor

    Fix is shipped in 10.4.0!

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

Metadata

Metadata

Assignees

No one assigned

    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