【发布时间】:2020-08-20 04:45:20
【问题描述】:
有谁知道是否有一种方法可以使用 https 地址而不是默认的 http 来初始化 Firebase 函数(使用模拟器在本地调试)? 我正在尝试调试与 Telegram 机器人相关的脚本,而 Telegram 仅允许 https webhook。
Shell 输出如下:
PS C:\Users\<user>\Desktop\tmp_node\functions> firebase emulators:start --only functions
i emulators: Starting emulators: functions
+ hub: emulator hub started at http://localhost:4400
+ functions: Using node@10 from host.
+ functions: functions emulator started at http://localhost:8443
i functions: Watching "C:\Users\<user>\Desktop\tmp_node\functions" for Cloud Functions...
+ functions[<function name>]: http function initialized (http://localhost:8443/<endpoint>).
+ emulators: All emulators started, it is now safe to connect.
我需要它从 https://localhost:8443/ 开始。
非常感谢您!
【问题讨论】:
-
这听起来像是一个功能请求,应该被定向到 Firebase CLI GitHub。 github.com/firebase/firebase-tools
-
嘿@Marc 你能解决这个问题吗?
-
嗨@bermick 对不起,不,我不是。
-
@Marc 我用 ngrok 让它工作了
标签: firebase google-cloud-functions telegram-bot firebase-cli telegram-webhook