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

Error: Runtime exited without providing a reason Runtime.ExitError

未關閉
#4 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Java
星號
15
分支
6
PR 合併指標
30 天內沒有已合併 PR

描述

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.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。