question

rahulzkuma avatar image
rahulzkuma asked

Error while running java client

After following the implementation steps from " https://developer.amazon.com/public/solutions/alexa/alexa-voice-service/docs/reference-implementation-guide#Obtaining the Sample App Code and Dependencies" In section "Using the Node.js Companion Service to Obtain Authorization from Login with Amazon" when i ping this url: https://localhost:3000/provision/d340f629bd685deeff28a917 which appears on my java client app, I get a response as : "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. Error Summary 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." Kindly help me how can i proceed further. Thanks
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.

sherritt@amazon avatar image
sherritt@amazon answered
It looks like either the Allowed Origins or Allowed Return URLs in your Security Profile do not exactly match what is expected. By default these are expected to be: Allowed Origins: https://localhost:3000 Allowed Return URLs: https://localhost:3000/authresponse It is recommended you use these values, as they are hard coded in the sample code in several places. If you wanted to change them, then they would have to be updated across the sample app code as well as the Security Profile. If you need to update your Security Profile, the directions are under Registering Your Product and Creating a Security Profile ( https://developer.amazon.com/public/solutions/alexa/alexa-voice-service/docs/reference-implementation-guide#Registering%20Your%20Product%20and%20Creating%20a%20Security%20Profile). You probably have already created your device, but you can edit it from the AVS developer console and start at point 5.
10 |5000

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

Ranjan avatar image
Ranjan answered

I went to the developer page and added the return url and now the log in page shows up but I am not still able to register. Get the following message "

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": Please help have been struggling for few hours
10 |5000

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

elstryan@Amazon avatar image
elstryan@Amazon answered

Hi,

Can you tell us what your productId and dsn is in your config.json? Can you please verify that your productId is exactly what is specified on your product page on developer.amazon.com?

10 |5000

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

newuser-a56cd57f-de35-4e9d-926d-1025557842db avatar image
newuser-a56cd57f-de35-4e9d-926d-1025557842db answered

i have same problem too

dsn is 123456789

10 |5000

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