sls alexa auth returns 400 Bad Request

661 views Asked by At

I have recently started working on alexa serverless. I have followed the steps as mentioned in a serverless blog https://serverless.com/blog/how-to-manage-your-alexa-skills-with-serverless/

I have installed the serverless and created security profile and updated the Web settings with allowed return url i.e, https 127.0.0.1:9090 After this I ran the command sls alexa auth. From here I am getting error like this enter image description here

I am unable to find whats happening behind the screens. whats with code. Required environment variables are set.Can somebody help me

2

There are 2 answers

0
bal simpson On

Go to Amazon Developer Portal. Choose Login With Amazon > Security Profiles > Edit > Web Settings.

Make sure you have the Allowed URL field filled in with your IP.

0
mbejda On

I had a similar issue. I updated my Allowed Origin and Allowed Return URLS to the following and it worked. Here is a screenshot.

enter image description here

Link: https://developer.amazon.com/settings/console/securityprofile/web-settings/update.html