英文:
Hello, I am working on Alexa Skills to connect a skill to a .net core web API and I am getting an error if anyone can help me regarding this issue
问题
我正在开发Alexa技能,但当我尝试从API返回响应时,出现了错误...
我在Alexa开发者控制台遇到的错误是:
无法解析请求的技能主机名。屏幕截图已附上。
英文:
I am working on alexa skills and I am getting an error when I try to return a response from an api...
The error I am facing from alexa developer console is:
I cannot resolve the hostname for the requested skill. The screen Capture is attached.enter image description here
The Link to article that I am trying is:
https://developer.okta.com/blog/2019/04/23/user-account-linking-alexa-aspnet-web-api#deploy-the-web-api-service-and-test-your-alexa-skill
答案1
得分: 0
为处理Alexa发送的请求,您的网络服务必须满足以下要求:
-
服务必须可以通过互联网访问。
-
服务必须接受端口443上的HTTP请求。
-
服务必须支持通过Amazon受信任的证书进行的SSL/TLS上的HTTP。您的网络服务的域名必须在证书的Subject Alternative Names(SANs)部分中。为了测试,您可以提供自签名证书。有关更多信息,请参阅有关SSL选项的文档。
-
服务必须验证传入的请求是否来自Alexa。有关更多信息,请参阅验证请求是否由Alexa发送。
-
服务必须遵守Alexa Skills Kit界面。
英文:
To handle requests sent by Alexa, your web service must meet the following requirements:
1.The service must be accessible over the internet.
2.The service must accept HTTP requests on port 443.
3.The service must support HTTP over SSL/TLS, using an Amazon-trusted certificate. Your web service's domain name must be in the Subject Alternative Names (SANs) section of the certificate. For testing, you can provide a self-signed certificate. For more information, see About the SSL Options.
4.The service must verify that incoming requests come from Alexa. For more information, see Verify that the request was sent by Alexa.
5.The service must adhere to the Alexa Skills Kit interface.
More information can be found here:
https://developer.amazon.com/en-US/docs/alexa/custom-skills/host-a-custom-skill-as-a-web-service.html#requirements-for-web-service
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论