aws / aws/aws-lambda-runtime-interface-emulator

Unexpected empty response when lambda function's process terminates

Đang mở
#86 0 bình luận 5 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
1.1k
Fork
118
Merge trung bình
42 phút
Pull request đã merge (30 ngày)
2

Mô tả

The RIE behaves differently from the "production" AWS Lambda environment when a Lambda function's process terminates.

Concretely, the production environment responds with a message that contains the process's exit status, e.g.:

```json
{
"errorType": "Runtime.ExitError",
"errorMessage": "RequestId: 7f399cc8-8841-fefa-0af7-ba803f3f21e3 Error: Runtime exited with error: exit status 42"
}
```

The Lambda RIE however does not send such a response. Instead, when the Lambda function's process terminates, the RIE only responds with an _empty_ response body, which does not resemble the behavior of the production environment.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start by tracing how the RIE handles a Lambda function process terminating and how it constructs the response. Compare that path with the production example in the issue; done means the response is non-empty and includes the process exit status in the shown error format.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
go
Lĩnh vực
backend
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.