Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

alexa skills kit - Uploading manifest file failing

After making some changes in a JSON manifest file, I was trying to update it following the Amazon documentation:

ask smapi update-skill-manifest -g development -s amzn1.ask.skill.xxxx --manifest "skillManifest.json" --debug

I kept getting this error: enter image description here

The error was not pointing to what the error was but my guess was that it was related to the parameters, but that was strange as I was following the documentation to letter.

I then tried, instead of passing the json file, to cat the content of the file, which would be either:

For Powershell: --manifest "$(type skillmanifest.json)"

For Linux: --manifest "$(cat skillmanifest.json)"

I still kept getting the same error.

question from:https://stackoverflow.com/questions/66049636/uploading-manifest-file-failing

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Firstly, for debugging and getting a more accurate error, I checked my ASK-CLi version, which was outdated.

After updating ASK to the latest version I was still getting the same error. At that point it started including an error object, which was saying: enter image description here

When looking into Parsing error due to invalid body. and INVALID_REQUEST_PARAMETER through the error codes, it just said the body of the request cannot be parsed.

After research and playing around, the problem was the manifest parameter, changing it to "file:FILENAME" solved the issue:

 --manifest "file:skillmanifest.json"

The documentation is not stating this but it seems necessary for it to go through.

I hope this helps someone out there avoid spending a full day troubleshooting.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...