question

Kailash P avatar image
Kailash P asked

not getting accesstoken in request

Hi,

I have a skill in development enviorment, I have noticed that many a times I am not getting accessToken in request, I have to disable the skill again and then perform account linking again.

It's happening on daily basis.

Please check the issue as I have to launch the skill in another 3-4 days. Logs as shown below :-



type: LaunchRequest


requestId: amzn1.echo-api.request.dba6c18d-f689-48c0-9ab1-a0583d021c75
timestamp: 2019-07-26T10:51:17Zlocale: en-IN
}}
2019-07-26 10:51:21 9a1c38a1-2e7b-4a3d-b400-4ba4ce5f1281 DEBUG LaunchRequestHandler:34 - Optional.empty
2019-07-26 10:51:21 9a1c38a1-2e7b-4a3d-b400-4ba4ce5f1281 DEBUG LaunchRequestHandler:35 - class User {
userId: amzn1.ask.account.AEF5OSYMNVN5AQLIVNEK24EXA4XKRRRD4WA7BPTKQRKRH6KSMVTQ3LLV24PKTFTPXORJDJBFTR5G3XPVOLBUP6BPEYI6PXQN3TSBZX425ZXBUW7C3HENTNTVT3J6DSQQRX2O52WHRYPA5EI75ZCSUK3ZHPUSZDCZHQZ4VRXGRHKG56XVOHTUCFYRH2BAY2GGUVOQIBROJLZN37Q
accessToken: nullpermissions: null
}END RequestId: 9a1c38a1-2e7b-4a3d-b400-4ba4ce5f1281
REPORT RequestId: 9a1c38a1-2e7b-4a3d-b400-4ba4ce5f1281 Duration: 1142.65 ms Billed Duration: 1200 ms Memory Size: 512 MB Max Memory Used: 139 MB


Thanks

Kailash


alexa skills kitalexa voice servicealexa
10 |5000

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

1 Answer

Kailash P avatar image
Kailash P answered

I think I got it, I should not have used implict grant as per message mentioned in the below link


https://developer.amazon.com/docs/account-linking/configure-implicit-grant.html


Thanks

Kailash


10 |5000

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