Closed aterreno closed 4 years ago
No, as far as I can remember, that has never caused the invocation to fail unless it bubbled up as an unhanded exception all the way in to generic Node (like onError type stuff)
In general I try to keep invocation failures to a minimum as a sign something has gone very wrong, and instead use logging and custom alarm metrics to detect HTTP status codes.
thanks @dougmoscrop for looking into this, almost a year passed and I ended up doing just as you said.
Hello, I am pretty sure I got this working in the past, so I am not sure if it's a new version of this library or express or if I am missing something ridiculously obvious but basically I was quite sure that if an endpoint in express throws an exception this would then fail the lambda invocation.
I'd really like to have this behaviour as I am using IOPipe and I'd like to monitor when something is not right.
I've put together my code here on a gist: https://gist.github.com/aterreno/a6f26acb31206cdfd3bdb6bead9f5c97
TLTR;
Thanks for your help!