question

newuser-9633d684-7f49-4892-b548-369e8de63c83 avatar image

An error occurred while attempting to link Alexa with luna. Please try again later.

Hi,

I'm trying to link my account and I get "An error occurred while attempting to link Alexa with luna. Please try again later." error.

I'm using Auth Code Grant.

After successfully authenticated, the client send this URL to alexa:

https://pitangui.amazon.com/api/skill/link/M17ZUN695ZLAC0?state=[very_long_string]&code=5184f4bc435cefb8d66253173421e3b14e3a147a with status code 302

and alexa shows an error account link page (not much information).

I was monitoring the client's log and I didn't see any subsequent incoming request to get access token.

How can I troubleshoot this issue? Anybody faced this issue before and found the solution?

I would greatly appreciate any help you can give me in working this problem :)

alexa skills kitalexa smart homeaccount linkingooooh
1 comment
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

meep avatar image meep commented ·

not an answer but you might consider supporting this feature request for better error reporting of account link failure. The current message is next to useless;

https://forums.developer.amazon.com/content/idea/57454/account-link-failure-should-generate-more-useful-f.html

0 Likes 0 ·

1 Answer

WangChao@Amazon avatar image
WangChao@Amazon answered

Please check the instructions at Alexa: Debugging account linking, cheers.

2 comments
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hi,

Thanks for your link!

I read about it yesterday and I got to fix the port to 443..

The problem now is if I create a NEW skill and use "Implicit grant", I'm able to link it successfully.

But if I use "Auth Code grant" the account link error will come out, although I can see the return result send the state and code correctly.

Any idea for this case?

Thanks for your help!

0 Likes 0 ·
Brian@Amazon avatar image Brian@Amazon ♦ newuser-9633d684-7f49-4892-b548-369e8de63c83 commented ·

Without knowing more information it's hard to say. If Implicit is working for you, great! If not, it's likely configuraiton related so wed need to know more information about your setup.

0 Likes 0 ·