Skip to content

Lambda error handling #4820

Answered by RanVaknin
asafshen asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @asafshen ,

Thanks for posting the question and sorry about the slow response time.

You have understood correctly how the Invoke lambda response works. A successful invocation would mean that the Lambda executed successfully, regardless of what you send back from that lambda itself whether it be an error or an exception.

I expect the abstraction layer above this to behave differently, especially in Go, where you would anticipate a function to return an error if it fails.

I understand the confusion, however err will only get populated if the Lambda API server fails to invoke your function.
In other words, errors on lambda are application level errors, whereas errors thrown in the SDK …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by RanVaknin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
2 participants