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

huangapple go评论108阅读模式
英文:

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开发者控制台遇到的错误是:

无法解析请求的技能主机名。屏幕截图已附上。

我正在尝试的文章链接是:
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

英文:

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发送的请求,您的网络服务必须满足以下要求:

  1. 服务必须可以通过互联网访问。

  2. 服务必须接受端口443上的HTTP请求。

  3. 服务必须支持通过Amazon受信任的证书进行的SSL/TLS上的HTTP。您的网络服务的域名必须在证书的Subject Alternative Names(SANs)部分中。为了测试,您可以提供自签名证书。有关更多信息,请参阅有关SSL选项的文档。

  4. 服务必须验证传入的请求是否来自Alexa。有关更多信息,请参阅验证请求是否由Alexa发送。

  5. 服务必须遵守Alexa Skills Kit界面。

更多信息可以在此处找到:
https://developer.amazon.com/en-US/docs/alexa/custom-skills/host-a-custom-skill-as-a-web-service.html#requirements-for-web-service

英文:

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

huangapple
  • 本文由 发表于 2023年7月13日 20:13:19
  • 转载请务必保留本文链接:https://go.coder-hub.com/76679249.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定