Callable Functions and firebase serve

392 views
Skip to first unread message

alb...@global-trust.eu

unread,
Apr 8, 2018, 11:50:53 AM4/8/18
to Firebase Google Group
When we run firebase serve, we get hosting/functions up and running, and everything looks ok.

But whenever we invoke firebase.functions().httpsCallable(''functionName') it tries to run it from firebase servers and not from our emulator.

Is there a way to force firebase.functions().httpsCallable to use emulator in dev mode?


Tyler Rockwood

unread,
Apr 9, 2018, 11:54:18 AM4/9/18
to Firebase Google Group
Hello!

Looking at the code here, it looks like it's hardcoded to use a hosted cloud functions environment. Hooking it up to the local functions emulator is a great idea however! I'll follow up with some of the folks who work on this internally.

Happy Monday,

-Tyler

Super Good Dave

unread,
Apr 12, 2018, 11:56:25 AM4/12/18
to Firebase Google Group
+1 for adding this to the local emulation. Deploying in order to test makes it a lot harder to debug issues.

alb...@global-trust.eu

unread,
Apr 13, 2018, 10:20:10 AM4/13/18
to Firebase Google Group
Yup, for now i have patched my local version, as it helps a lot with my current workflow.

Doug Stevenson

unread,
Apr 13, 2018, 1:19:54 PM4/13/18
to Firebase Google Group
FYI, the team is definitely looking into adding better support for callables for:

1) The local shell (`firebase functions:shell`)
2) The local emulator (`firebase serve`), allowing the SDK to access a localhost URL
3) Unit tests with the firebase-functions-test node module

Doug

Lev Waisberg

unread,
Apr 16, 2018, 10:53:21 PM4/16/18
to Firebase Google Group
can you please share what you did to patch this? maybe a link to source code?
I need this as well!
Thanks.


On Friday, April 13, 2018 at 7:20:10 AM UTC-7, alb...@global-trust.eu wrote:

Levani Melikishvili

unread,
May 10, 2018, 9:42:34 AM5/10/18
to Firebase Google Group
This would be a really nice feature! Is there a github issue to keep track?
Reply all
Reply to author
Forward
0 new messages