alexa-smarthome icon indicating copy to clipboard operation
alexa-smarthome copied to clipboard

Failed to enable skill for test

Open LuForGitHub opened this issue 6 years ago • 6 comments

I was following below instruction to set up a smart home skill: https://github.com/alexa/alexa-smarthome/wiki/Build-a-Working-Smart-Home-Skill-in-15-Minutes

However, at the test stage, I failed to enable the skill, as I got below error: The authorization server returned with an error parameter. Please refer to https://tools.ietf.org/html/rfc6749#section-4.1.2.1 for more details.

Please advise. Thanks

LuForGitHub avatar Oct 29 '18 19:10 LuForGitHub

I had the same problem. By using the Chrome dev tools, and turning on its option 'Auto open DevTools for popups', I was able to capture the error parameter in the auth popup, which was something like 'Invalid scope'. Taking a guess, I tried changing the scope in the security profile I'd set up to "profile:user_id" (from here) instead of "profile", and then it worked!

Not sure why "profile" wasn't accepted - can anyone shed any light? (I'm in the UK, in case that affects security/privacy options).

sebwills avatar Feb 10 '19 15:02 sebwills

One issue I had was not actually enabling my created security profile to log in with amazon. If you navigate to the amazon developer console and click Login with Amazon, you can enable your security profile by providing a Consent Privacy Notice URL. I just used amazon's: https://www.amazon.com/gp/help/customer/display.html?nodeId=468496.

rouport avatar Feb 12 '19 22:02 rouport

Thanks @rouport, that was very helpful!

sebwills avatar Feb 22 '19 22:02 sebwills

Hi rouport. That also fixed my problem

faengelm avatar Apr 19 '19 01:04 faengelm

Thanks @rouport, that was very helpful!

i have done the same but still not working for me

pixelatedpic avatar Apr 29 '20 13:04 pixelatedpic

@rouport anyway i figured it out and the skill enabled. but how do i know if this works? i tried Alexa, turn on switch and it says it i dont have a switch.. hehe

pixelatedpic avatar Apr 29 '20 15:04 pixelatedpic

Hi pixelatedpic, were you able to discover the device first? If not, please have a look at the following documentation about how to respond to discovery directives so that Alexa can discover the endpoints associated with your smart home skill: https://developer.amazon.com/de-DE/docs/alexa/device-apis/alexa-discovery.html#directives

Please note that the discovery process can potentially fail because of a mismatch between the account's PFM (Preferred market place), the skill locale, and the lambda endpoint region.

You can find additional information here: https://developer.amazon.com/en-US/blogs/alexa/device-makers/2023/07/smart-home-discovery-alexa-july-2023

dievaa avatar Oct 19 '23 09:10 dievaa