Amazon Alexa skill: We were unable to link xxxx at this time. And with 401 Unauthorized

岁酱吖の 提交于 2019-12-17 21:22:45

问题


Amazon Alexa skill: We were unable to link xxxx at this time. And with 401 Unauthorized.

===================================================================

Skill model: CUSTOM

Skill STATUS: In Development

Account Linking: Auth Code Grant

Client Authentication Scheme: "HTTP Basic" (Credentials in request body is the same error)

Default Access Token Expiration Time: 360

1,Use Browser on Microsoft Windows open https://alexa.amazon.com/spa/index.html

In "DEV SKILLS", Enable my CUSTOM skill, Amazon Alexa service accesses my "Authorization URI" and asks for the "code". I send the "code" to it's redirect_uri(https://pitangui.amazon.com/api/skill/link/xxxxxxxxxxxx).

https://pitangui.amazon.com/api/skill/link/xxxxxxxxxxxx?state=xyz&code=SplxlOBeZQQYbYS6WxSbIA

This is no problem.

2,Amazon Alexa service has received my "code" and use it to access my "Access Token URI".

(Note that the authorization server must respond to the token request within 4.5 seconds.)

Yes, I'm sure it is accessing my "Access Token URI", because the code it provided is the same with that I sended in Step 1.

HTTP/1.1 401 Unauthorized Server: Server Date: Thu, 09 May 2019

And in my Browser, URL: https://skills-store.amazon.com/external/link-result?success=false&languageCode=en_US&skillId=amzn1.ask.skill.29bba2e6-8c01-4cd1-975d-xxxxxxxxxxxxx&skillStage=development

===================================================================

Can anyone help me? Thanks!

===================================================================

来源:https://stackoverflow.com/questions/56070119/amazon-alexa-skill-we-were-unable-to-link-xxxx-at-this-time-and-with-401-unaut

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!