我正在开发Alexa的自定义技能,并尝试根据我在Amazon Alexa控制台上定义的示例话语和意图架构,在端口8443上的https服务 endpoints 上返回硬编码响应 .
从Alexa服务模拟器测试我收到错误 There was an error calling the remote endpoint, which returned HTTP 405 : Method Not Allowed
从POSTMEN访问 endpoints URL时,我确实得到了下面提到的响应
{"response":{"shouldEndSession":true,"outputSpeech":{"text":"All appliance are working as expected","type":"PlainText"}},"sessionAttributes":{},"version":"1.0"}
我发现很难理解我做错了什么 .
1 回答
Alexa在外部托管技能方面非常挑剔 . 听起来这可能是个问题 . 它可以完成,你只需遵循Alexa定义的规则 .
From the docs
该服务必须支持HTTP over SSL / TLS,利用亚马逊信任的证书 .
该服务必须接受443端口的请求
为了进行测试,亚马逊接受了提供证书的不同方法 . For details, see the “About the SSL Options” section of Registering and Managing Custom Skills in the Developer Portal .