-
Notifications
You must be signed in to change notification settings - Fork 6
Runtime exited without providing a reason #27
Comments
To troubleshoot your code I suggest to use the function log() as implemented in HelloWorld.
|
For Are you sure the db is reachable from the AWS Lambda? |
Hi, I am using HellowWorld Example's sample code only for AsyncLambda ... Just one line of change in main.swift
And yes it calls completionHandler inside it. This is the code
returns exact same error message Thanks |
just to clarify any confusion. It has nothing to do with Database connection or anything. It's the default code that is given in the main.swift file for asyncLambda i am referring to. Thanks |
@mihirpmehta Have you registered the Handler |
Oh. I miss it. I didn't change it in makefile. Thanks a ton |
Describe the bug
While sample code of syncLambda runs properly. Sample code for asyncLambda: AsyncCodableLambda throws following error
Result:
{"errorType":"Runtime.ExitError","errorMessage":"RequestId: 3278a4df-68cb-45d0-afe9-8870a675dae5 Error: Runtime exited without providing a reason"}
To Reproduce
Steps to reproduce the behavior:
Clone this repository and change following line
Inside Example/HelloWorld/Sources/HelloWorld/Main.swift
Follow all the steps to make docker build, layer, lambda from terminal
Run make invoke_lambda
Expected behavior
Sample code given in asyncDictLambda: AsyncDictionaryLambda or asyncLambda: AsyncCodableLambda should run without any error
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: