Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
gpfister opened this issue Mar 17, 2022 · 3 comments
Closed

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

gpfister opened this issue Mar 17, 2022 · 3 comments

Comments

@gpfister
Copy link

gpfister commented Mar 17, 2022

[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.
@gpfister gpfister added the bug label Mar 17, 2022
@sceee
Copy link
Contributor

sceee commented Mar 17, 2022

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

@gpfister
Copy link
Author

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

@taeold
Copy link
Contributor

taeold commented Mar 17, 2022

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants