Closed philipp94831 closed 5 years ago
FWIW, I have a similar issue in ruby https://github.com/awslabs/aws-sam-cli/issues/1148
I don't see where you're using the AWS SAM CLI in here, though I might be missing something. Can you give me the context of how you're running sam local
, or which sam
commands you're seeing an error with?
I may be following this from the other opened issue #1148 - stand by while I validate that one.
Closing this as an apparent duplicate of #1148 - feel free to reopen with more details if you think this is a distinct issue.
Description
I built a custom runtime. When running tests locally as documented, runtime errors are logged properly but the response payload is empty and
FunctionError
is not set. When deploying the Lambda to AWS and invoking it with the same payload, the response containserrorMessage
anderrorType
, as well as theFunctionError
field. Errors are returned as documented: https://github.com/bakdata/aws-lambda-r-runtime/blob/5793c17e9259fd93622a9162ee65a284cf029df2/runtime/src/runtime.R#L11 The concerning tests are annotated withunittest.skip
: https://github.com/bakdata/aws-lambda-r-runtime/blob/5793c17e9259fd93622a9162ee65a284cf029df2/tests/test_runtime.py#L40Steps to reproduce
Checkout 5793c17e9259fd93622a9162ee65a284cf029df2 of https://github.com/bakdata/aws-lambda-r-runtime/. The build process is described in the README.
Test execution:
Observed result
Expected result
I expect the result payload to contain
errorMessage
anderroryType
as well asFunctionError
to be set.Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: SAM CLI, version 0.16.1