aws-samples / aws-samples/aws-lambda-java-custom-runtime

Error: Runtime exited without providing a reason Runtime.ExitError

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
15
Forks
6
PR merge metrics
No merged PRs in 30d

Description

I was trying to get this working using Kotlin but I keep getting this: Error: Runtime exited without providing a reason Runtime.ExitError.

My handler is setup like this

class SimpleHandler: RequestHandler {
val logger = LoggerFactory.getLogger(SimpleHandler::class.java)
val jsonMapper = jacksonObjectMapper()
var responseFromClient: String = ""

override fun handleRequest(input: APIGatewayProxyRequestEvent?, context: Context?): APIGatewayProxyResponseEvent {
logger.info("APIGatewayProxyRequestEvent received: \n ${jsonMapper.writeValueAsString(input)}")

}

}

I don't have a main class as the java example. I noticed that when I added a main class I get a different error: Request Timeout but maybe is because is trying to wait for and answer from main execution. Please advice.

Contributor guide

Open the contributing guide

Research direction

Start by comparing the Kotlin SimpleHandler implementation with the repository's Java example and the custom runtime entry point. Reproduce the Runtime.ExitError and the Request Timeout, then confirm that the handler can be invoked without either failure and provides the expected response.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, java, kotlin
Domain
backend, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.