Open zikotrance opened 5 years ago
I’d recommend using Assistant Mk2. I had the same issue and couldn’t get it resolved no matter what I did
Sent with GitHawk
Did you add https://magic-mirror-avs.github.io/Alexa-Web-Helper/authresponse to the AVS allowed return url on Amazon Developer site?
Hello, Same issue for me, what I have to fill on URI and return URL? Thanks for your help Philippe
Hi guys, i've been truggling with this issue for few days now and really appreciate your help. Once I get the authorization code from https://magic-mirror-avs.github.io/Alexa-Web-Helper/authresponse?code=xxxxxxxxxxx I get this code as follow: At the bottom you can see trying tGestting response from Amazon in LOOP
I don't know what I'm doing wrong:
Welcome to the Config Helper tool! This tool will help you get the Refresh Token needed to run MMM-awesome-alexa. It will optionally generate your config for you, if you wish. If not, you can still create it manually after. Go to https://developer.amazon.com/alexa/console/avs/products to get the details.
? Enter your Client ID from Alexa Voice Service (AVS): xxxxxxxxxxxxxxxxxxxxxxxxxxx ? Enter your Client Secret from Alexa Voice Service (AVS): xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ? Enter your Product ID from Alexa Voice Service (AVS): xxxxx ? Enter your Redirect URI (allowed return URL) from Alexa Voice Service (AVS): https://magic-mirror-a vs.github.io/Alexa-Web-Helper/authresponse Hooray! Link is generated. Part 1 is done. Please go on the link below.
Please be aware that at the end, THERE WILL BE AN ERROR! This is normal.
https://www.amazon.com/ap/oa?client_id=amzn1.application-oReplacingMyAuthCodeWithThis&scope=alexa:all&scope_data={"alexa:all":{"productID":"M1","productInstanceAttributes":{"deviceSerialNumber":123}}}&response_type=code&redirect_uri=https://magic-mirror-avs.github.io/Alexa-Web-Helper/authresponse
^^^ Copy and paste the above in your Browser ^^^, follow the instructions. The authorization code you want is in the address bar in the final screen: https://imgur.com/a/6DbYlKD ? Enter your Authorization code (from previous step): xxxxxxxxxxxx (I get this code from auto response URL)
â¡ Getting response from Amazon...(node:11412) UnhandledPromiseRejectionWarning: StatusCodeError: 400 - {"error":"invalid_grant","error_description":"The request has an invalid grant parameter : code"}
(node:11412) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:11412) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
âGetting response from Amazon...^C