gaction测试调用者没有权限

时间:2019-05-17 02:37:08

标签: raspberry-pi3 actions-on-google google-assistant-sdk

我正在尝试使用Google Assistant SDK在树莓派3上设置自定义命令。我遵循this guide来设置我的自定义命令。每当我运行gactions test ti时,都会出现以下错误:

Pushing the app for the Assistant for testing...
ERROR: Failed to test the app for the Assistant
ERROR: The caller does not have permission
2019/05/16 17:50:23 Server did not return HTTP 200

我已使用gactions update通过拥有Google Action项目的google帐户上传我的操作定义json文件,并且该文件已成功更新。因此,我不确定为什么我对拥有的且操作json更新成功的项目没有权限。

我有用于自定义操作的json。

{
  "manifest": {
      "displayName": "DJ Roomba",
      "invocationName": "DJ Roomba",
      "category": "PRODUCTIVITY"
  },
  "actions": [
    {
      "description": "Thanos Snap",
      "name": "djroomba.name.ThanosSnap",
      "availability": {
          "deviceClasses": [
              {
                  "assistantSdkDevice": {}
              }
          ]
      },
      "fulfillment": {
        "staticFulfillment": {
            "templatedResponse": {
                "items": [
                    {
                        "simpleResponse": {
                            "textToSpeech": "You should have gone for the head"
                        }
                    },
                    {
                        "deviceExecution": {
                            "command": "action.devices.commands.ThanosSnap"
                        }
                    }
                ]
            }
        }
      },
      "intent": {
        "name": "djroomba.intent.ThanosSnap",
        "trigger": {
          "queryPatterns": [
            "Thanos snap"
          ]
        }
      }
    }
  ],
  "locale": "en"
}

我不确定这是否有帮助,但是我正在使用Raspbian Jessie(因为snowboy仅支持该功能)

1 个答案:

答案 0 :(得分:0)

因此,事实证明,我至少必须以alpha或beta版本发布我的操作,否则gactions test将不起作用