-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setting "verify: true" is causing alexa app to timeout from echo devices #52
Comments
I don't think middlewares are being handled correctly. There seems to be a lot of conflicting bodyparser related activity in the code: https://github.com/alexa-js/alexa-app-server/blob/master/index.js#L166 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 https://github.com/alexa-js/alexa-app-server/blob/master/index.js#L85 This is kind of a mess. I suspect this is why @cpup22 is having problems. Seems also possibly related: |
#35 might also be related? |
Another thing to note, for some reason, the |
@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 Note that @mreinstein above is absolutely correct, the fix is basically his code from #54. |
@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 |
Also, the good news is that #64 has an otherwise failing test for this issue that reproduces the same hang, so once we fix this we're not going to reintroduce a regression in future versions. |
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.
The text was updated successfully, but these errors were encountered: