question

f-ischia avatar image
f-ischia asked

AVS - After I select "OK" it takes me a screen where it says "We're sorry!

When trying to get the access token for Alexa Voice Service, I'm taken to the Login with Amazon page, I enter my credentials and then have to click on an OK button to get the token. After I select "OK" it takes me a screen where it reads: "We're sorry! - An error occurred when we tried to process your request. Rest assured, we're already working on the problem and expect to resolve it shortly."

The payload of my request looks like: {'scope': 'alexa:all', 'redirect_uri': 'http://localhost:3000/code', 'response_type': 'code', 'client_id': 'amzn1.application-oa2-client.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', 'scope_data': '{"alexa:all": {"productInstanceAttributes": {"deviceSerialNumber": "001"}, "productID": "Test RPi"}}'}

I had some typo before on the client_id and the "We're sorry" page had a details section that allowed me to find out what was wrong. But now that my payload is correct, there is no detail section, so I cannot troubleshoot any further.

The code I'm using is from Sam Machin at: https://github.com/sammachin/AlexaPi

alexa voice service
10 |5000

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

Eric@Amazon avatar image
Eric@Amazon answered

It could be one of a couple problems:

  • Your redirect URI might not be whitelisted. Check the security profile web settings. Also, I notice that your redirect uri is http - it should be HTTPS, and you should make sure in the security profile web settings it matches exactly.
  • You might not have the alexa:all scope attached to that security profile. In order to attach it, go to the developer portal, select your device/application, and reselect the security profile associated with it in the dropdown (don't just verify that it is correct - actually reselect it)

Additionally, I'd like to point out that the sammachin code is for the v1 API, and it has many known bugs. I highly recommend you check out the official latest RPi code, available here: https://github.com/amzn/alexa-avs-raspberry-pi

10 |5000

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

J.Carlos avatar image
J.Carlos answered

JA 404 error, where IS?

10 |5000

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