Alexa can control smart home devices with its Smart Home Skills. I'm trying it out, but when I try to enable MySkill from the Alexa app, I get 'We were unable to link MySkill at this time'.
I've followed [Alexa's build a smart home skill]
I used Django, Django Rest Framework and Oauth2 Toolkit to make my authentication server.
I've tested the oauth2 on the command line with curl and it seems ok.
When I look at Django's output, I see that it processes both the '/o/authorize/?client_id=...' (GET and POST) with returns 200 and 302. After that I see a '/o/token/' with a 200.
Also I see in the database a new 'Access Token' and 'Refresh Token'.
All this makes me think Oauth2 has completed successfully. At the point of failure, it points to a guide, [Link an Alexa User with a User in Your System]. In that guide under the Account linking flow for authorization code grant -
> 6. The Alexa service validates the returned information, then uses the code to request an access token and refresh token pair from your authorization server (specified in the Access Token URI field in the developer portal). Both of these items are saved for the Alexa user.
> 7. The user's Alexa account is now linked to the account in your service, and the skill is ready to be used. I think I'm after 6 as token pairs are generated, but I've not got to number 7.
Is there a way to get a more info from amazon alexa to know what why it was unable to link?
I've got CloudWatch connect but there are no logs when it tries to enable. I do see CloudWatch logs when I test the lambda functions.