如何解决:使用gactions时出现““预览”没有帮助主题”错误?

时间:2019-03-31 22:34:23

标签: json google-cloud-platform google-assistant-sdk google-home

我一直在尝试着为您的Google Home构建第一个操作的教程:

https://medium.com/google-cloud/building-your-first-action-for-google-home-in-30-minutes-ec6c65b7bd32

我能够将应用程序部署到Google云端,但是一旦尝试部署action.json测试文件,我就会收到一条错误消息,内容为:“暂无帮助主题”。

./gactions preview --action_package action.json --invocation_name "three doors" --preview_mins 1234

No help topic for 'preview'

我遵循了以下建议:

https://stackoverflow.com/questions/46591266/golang-runtime-panic-when-using-gaction-on-linux-to-update-google-home-assistant

但是更新gaction也不起作用,因为没有新的更新。

我正在运行ubuntu-18.04.2 Linux 4.18.0-15(通用x86_64)

{
  "versionLabel": "1.0",
  "agentInfo": {
    "languageCode": "en-US",
    "projectId": "three-doors-3124",
    "voiceName": "male_1"
  },
  "actions": [
    {
      "description": "Launch intent",
      "initialTrigger": {
        "intent": "assistant.intent.action.MAIN"
      },
      "httpExecution": {
        "url": "https://us-central1-three-doors-3124.cloudfunctions.net/three_doors"
      }
    }
  ],
 "locale": "en"
}

我不确定如何解决此问题,因此将不胜感激。

谢谢

1 个答案:

答案 0 :(得分:0)

该帖子来自2017年,此后许多开发环境和设置都发生了变化。我建议您转到codelabs,因为它们会提供最新的入门指南。

相关问题