[英]Using the Google Actions console gives me an error, even if I didn't change anything in the sample project
I'm trying to make a custom google action using the Google Actions console .我正在尝试使用Google Actions 控制台进行自定义 google 操作。 So far I've had a pretty rough time, given that all the tutorials I found are outdated(-2020).
到目前为止,鉴于我发现的所有教程都已过时(-2020 年),我度过了一段非常艰难的时期。 What I did was start with a sample Hello World project:
我所做的是从一个示例 Hello World 项目开始:
And then go straight to the test tab (I did this because I thought I was doing something wrong).然后 go 直接到测试选项卡(我这样做是因为我认为我做错了什么)。 Every time I try to test I get the error message "Cloud function deployment failed":
每次我尝试测试时都会收到错误消息“Cloud function 部署失败”:
I tried looking around in the official documentation, but I couldn't find anything that helped.我尝试在官方文档中四处寻找,但找不到任何有用的东西。
First - it is important that you understand that any Conversational Actions created using the Actions console will be shut down starting June 13th, 2023.首先 - 请务必了解,使用操作控制台创建的任何对话操作将从 2023 年 6 月 13 日开始关闭。
I think the problem in your case is that the Hello World uses the Inline Cloud Functions Editor to hold the code.我认为您的问题是 Hello World 使用内联云函数编辑器来保存代码。 You can see this if you go to the Develop tab along the top and then the Webhook navigation on the left.
如果您将 go 转到顶部的“开发”选项卡,然后转到左侧的 Webhook 导航,则可以看到这一点。
As the banner says there, in order to deploy this function, you need to associate the project with a billing account in the Google Cloud console.正如横幅所说,为了部署此 function,您需要将项目与 Google Cloud 控制台中的结算帐户相关联。 Without this billing account, it won't be able to deploy the function, and you'll get that vague error.
如果没有此计费帐户,它将无法部署 function,并且您会收到那个模糊的错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.