alexa / ask-toolkit-for-vscode

ASK Toolkit is an extension for Visual Studio Code (VSC) that that makes it easier for developers to develop and deploy Alexa Skills.
https://developer.amazon.com/en-US/docs/alexa/ask-toolkit/get-started-with-the-ask-toolkit-for-visual-studio-code.html
Apache License 2.0
108 stars 53 forks source link

error at sign in #191

Closed gito333 closed 2 years ago

gito333 commented 2 years ago

Desktop (please complete the following information):

Question Im new to this and i have never done something similar so Im a little bit noob. When I click in sign in, it redirects me to this page. I have already added my local adress to the developers configuration

400 Bad Request The redirect URI you provided has not been whitelisted for your application. Please add your redirect URI in the 'Allowed Return URLs' section under 'Web Settings' for your Security Profile on Amazon Developer Portal. Request Details redirect_uri=http://localhost:9090/cb scope=alexa::ask:skills:readwrite%20alexa::ask:models:readwrite%20alexa::ask:skills:test%20alexa::ask:catalogs:read%20alexa::ask:catalogs:readwrite%20alexa::ask:skills:debug state=Ask-SkillModel-ReadWrite response_type=code

isaiaszmendes commented 2 years ago

I had the same error message

doiron commented 2 years ago

Are you doing remote debugging by any chance? Could you confirm if you have configured port forwarding to port 9090. here's the FAQ that talks about this a bit.

https://github.com/alexa/ask-toolkit-for-vscode#faqs

doiron commented 2 years ago

also if that doesn't help try to downgrade one version and let me know if that works.

I presume you are on 2.11.2 ( not 2.22.2 ) try downgrading to 2.11.1.

The little gear icon menu for the plugin has a "Install another version" option.

Image from https://code.visualstudio.com/ here

isaiaszmendes commented 2 years ago

Hello, @doiron, thank you for support! This happend in my first alexa skill project, so I didn't configured the settings. When I did downgrade for 2.11.1 version, the sign in worked. I did reset the settings before downgrade for test your solution, but it still did'n work

doiron commented 2 years ago

thanks for letting me know. In that case I presume this PR-164 is the issue. We'll need to dive a bit into the issue and why it wasn't caught by the tests, fix and/or rollback. Will update this issue once we have a more permanent fix.

gito333 commented 2 years ago

also if that doesn't help try to downgrade one version and let me know if that works.

I presume you are on 2.11.2 ( not 2.22.2 ) try downgrading to 2.11.1.

The little gear icon menu for the plugin has a "Install another version" option.

Image from https://code.visualstudio.com/ here

it was just that, i just tried by downgrading to 2.11.1 and it fixed it. Thanks you for your quick response

tydonelson commented 2 years ago

@gito333 @isaiaszmendes

Thanks for your patience around this bug! We've reverted the change for now with this PR: https://github.com/alexa/ask-toolkit-for-vscode/pull/193

You can continue to use the latest version again, the current version as of now should be 2.11.3.