3

第一次来这里,我被困住了:(

我正在尝试按照快速入门指南进行实地项目。我已经尝试了无数种在Actions Console中创建项目的不同方法。我相信它应该是New project -> Game -> Blank project (for smart display)。我已经为该项目启用了Actions API 。

我创建了这样的项目gactions init interactive-canvas --dest test-canvas

我已经sdk/settings/settings.yaml用我的项目 ID 更新了文件。

当我尝试推动我的项目时,gactions push我收到了一些警告,尤其是这个Custom actions can only be specified in Conversational Actions projects

...
Waiting for server to respond...
[WARNING] Server found validation issues (however, your files were still pushed):
  Locale  Validation Result
          Custom actions can only be specified in Conversational Actions projects.
  en      Short description is required
  en      Long description is required
...

当我尝试运行时gactions deploy preview,出现以下错误:

Deploying files in the project "test-canvas" to Actions Console for preview. This may take a few minutes.
Sending configuration files...
Sending resources...
Waiting for server to respond. It could take up to 1 minute if your cloud function needs to be redeployed.
[ERROR] Server did not return HTTP 200.
{
  "error": {
    "code": 400,
    "message": "Request contains an invalid argument.",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.BadRequest",
        "fieldViolations": [
          {
            "description": "Custom actions can only be specified in Conversational Actions projects."
          }
        ]
      }
    ]
  }
}

我如何创建一个Conversational Actions project?我以为我一直在这样做?我很困惑。谁能指出我正确的方向?

谢谢!

亲切的问候,托拜厄斯

$ gactions version
3.0.0+316143447
4

1 回答 1

2

我也在尝试启动一个项目。我收到了同样的错误消息,我想知道这是否是谷歌方面需要修复的问题。现在,我只是gactions push在更新任何代码并转到Actions Console > Webhooks并单击Deploy时使用。我等待它部署到服务器,然后单击“测试”选项卡以使用模拟器。

于 2020-07-20T16:43:47.880 回答