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

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

问题描述

我一直在学习关于Facts about You: 为 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 设置 Webhook 以提供自定义响应.该页面上的第 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?如果不知道 webhook 的端点 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.

谢谢!

推荐答案

当 codelab 指示你运行 firebase deploy --only functions 时,它会输出你创建的 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

复制该 URL - 这是您的 Webhook 端点.

Copy that URL - it's your webhook endpoint.

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

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