在Google助手教程中找不到Firebase Webhook的函数URL [英] Can't find the function url for Firebase webhook in Google Assistant tutorial

查看:103
本文介绍了在Google助手教程中找不到Firebase Webhook的函数URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在做 关于您的事实的Codelabs教程。 :为Google助手构建对话式应用,但遇到了问题。

I've been doing the Codelabs tutorial on "Facts about You: Build a conversational app for the Google Assistant" but have run into a problem.

本教程的第4页专门介绍了如何将Cloud Functions for Firebase用于设置网络挂钩以提供自定义响应。该页面上的第7步表示一旦部署了Cloud Functions,功能URL将被打印在Firebase CLI日志中。该URL与项目控制台URL分开。

Page 4 of the tutorial is devoted to using Cloud Functions for Firebase for setting up a webhook to provide custom responses. Step 7 on that page says "Once the Cloud Functions is deployed, the Function URL will be printed in the Firebase CLI logs. This URL is separate from the Project Console URL."

我的问题是我只看到控制台URL,在任何地方都看不到功能URL。

My problem is that I only see the Console URL. I don’t see a Function URL anywhere.

任何人都可以澄清我应该在哪里找到功能URL吗?如果不知道webhoook的终结点URL,我的应用将无法正常运行。

Can anyone please clarify where I should find the Function URL? My app won’t run properly without knowing the endpoint URL for the webhoook.

谢谢!

推荐答案

当代码实验室指示您运行 firebase deploy --only函数时,它将输出您创建的HTTP函数的URL,它将是输出的最后一行,如下所示:

When the codelab instructs you to run firebase deploy --only functions, it will output the URL for the HTTP function that you created. It will be the last line of output and look something like this:

Function URL (foo): https://us-central1-my-codelab.cloudfunctions.net/foo

复制该网址-这是您的Webhook端点。

Copy that URL - it's your webhook endpoint.

这篇关于在Google助手教程中找不到Firebase Webhook的函数URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆