aws-samples / aws-samples/aws-lambda-java-custom-runtime
Error: Runtime exited without providing a reason Runtime.ExitError
- Ngôn ngữ chính
- Java
- Star
- 15
- Fork
- 6
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách so sánh triển khai Kotlin SimpleHandler với ví dụ Java của repository và entry point của runtime tùy chỉnh. Tái hiện Runtime.ExitError và Request Timeout, sau đó xác nhận rằng handler có thể được gọi mà không gặp một trong hai lỗi và cung cấp phản hồi như mong đợi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- aws, java, kotlin
- Lĩnh vực
- backend, cloud
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100