You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Lambda: invoke returns FunctionError='' on success; AWS omits the key #393
FunctionError present only on Handled/Unhandled, per the InvokeResponse
documentation. Also note LogResult is returned unconditionally here; AWS returns
it only when LogType="Tail" was requested.
Why it matters
Low severity — the idiomatic check is truthiness, and "" is falsy:
ifresponse.get("FunctionError"): # correct against bothraiseLambdaFunctionError(...)
But if "FunctionError" in response: is a natural and reasonably common spelling,
and it inverts against substrate: every successful invocation looks like a failure.
It also makes the honest assertion in an emulator-conformance test
(assert "FunctionError" not in response) fail, which is how I found it.
Activity
fix(lambda): omit FunctionError and LogResult unless applicable (#393) (
chore(release): v0.80.0 (#423)