gpt4 book ai didi

alexa-skills-kit - 由于主体 ASK CLI 无效而导致解析错误

转载 作者:行者123 更新时间:2023-12-03 08:20:44 25 4
gpt4 key购买 nike

使用 ASK CLI,我尝试更新我的智能家居技能 list ,但遇到以下错误。

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

我刚刚更改了下载的 list 中的拼写。

ask smapi update-skill-manifest -s --manifest $(cat skill-manifest.json)

或者

ask 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"
}
}
}
]
}

这是技能 list .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"
}
}
}

最佳答案

几个月前我在上传 list 时遇到了同样的问题。问题是 json 文件前面必须带有前缀“file:”,例如:

--manifest "file:manifestFile.json"

所以你的命令是:

ask smapi update-skill-manifest -s --manifest "file:skill-manifest.json"

Here有关于此的更多详细信息。

关于alexa-skills-kit - 由于主体 ASK CLI 无效而导致解析错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67941293/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com