由于无效的主体 ASK CLI 导致解析错误

问题描述

使用 ASK CLI,我正在尝试更新我的智能家居技能清单,但我遇到了以下错误

询问 smapi get-skill-manifest -s amzn1.ask.skill.6d0d22eb-d305-4caa-8921-503cb7827454 -p supreet > Skill-manifest.json

我刚刚在下载的清单中更改了拼写。

询问 smapi update-skill-manifest -s --manifest $(cat Skill-manifest.json)

询问smapi update-skill-manifest -s --manifest Skill-manifest.json

"response": {
      "message": "Request is not valid.","violations": [
        {
          "code": "INVALID_REQUEST_ParaMETER","message": "Parsing error due to invalid body.","validationDetails": {
            "originalInstance": {
              "type": "BODY"
            },"reason": {
              "type": "MALFORMED_INPUT"
            }
          }
        }
      ]
    }

这里是skill-manifest.json

{
  "manifest": {
    "apis": {
      "smartHome": {
        "endpoint": {
          "uri": "<arn>"
        },"protocolVersion": "3"
      }
    },"manifestVersion": "1.0","permissions": [
      {
        "name": "alexa::async_event:write"
      }
    ],"privacyAndCompliance": {
      "allowsPurchases": false,"containsAds": false,"isChildDirected": false,"isExportCompliant": true,"locales": {
        "en-IN": {
          "privacyPolicyUrl": "https://www.privacyyyyyyypolicy.net","termsOfUseUrl": "https://www.termsofuse.net"
        }
      },"usesPersonalInfo": false
    },"publishinginformation": {
      "automaticdistribution": {
        "isActive": false
      },"category": "SMART_HOME","distributionCountries": [],"distributionMode": "PUBLIC","isAvailableWorldwide": true,"locales": {
        "en-IN": {
          "description": "Test","examplePhrases": [
            "test"
          ],"keywords": [
            "test"
          ],"largeIconUri": "<logo-url>","name": "Test","smallIconUri": "<logo2-url>","summary": "Test"
        }
      },"testingInstructions": "test using alexa"
    }
  }
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...