Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
setting "verify: true" is causing alexa app to timeout from echo devices #52
When I set the flag for verify to be true it works when I try to check my endpoint from a non-echo device. It properly returns a 401 error message:
However, when I try to test the app from the Amazon Alexa dev website or any echo devices, it throws an error that the requested skill has taken too long to respond.
Switching the flag back to false or removing completely and it goes back to working from echo devices but obviously it is going to fail certification.
I don't think middlewares are being handled correctly. There seems to be a lot of conflicting bodyparser related activity in the code:
this line declares a body parser before pulling in the raw body (https://github.com/alexa-js/alexa-app-server/blob/master/index.js#L171)
there is also installation of the
This is kind of a mess. I suspect this is why @cpup22 is having problems. Seems also possibly related:
referenced this issue
Jan 31, 2017
@cpup22 I have an incomplete fix in #64, and I have been using a test project from https://github.com/dblock/alexa-app-server-hello-world running on Heroku for testing this. If you want to see quickly if it solves your problem, you can try
Note that you need to specify
@dblock I updated and did an npm install and see the following...
Looks like the error is coming form alexa-app/index.js Maybe I didnt' get the changes?? It looks based on the console log that it pulled from your github repo.
Doesn't look like it's using the right alexa-app code, try adding