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

Unexpected empty response when lambda function's process terminates

未关闭
#86 0 条评论 5 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
1.1k
派生
118
平均合并
42 分钟
30 天内合并 PR
2

描述

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.

贡献指南

打开贡献指南

调研方向

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.

由索引模型根据 Issue 内容生成。

评估

技术栈
go
领域
backend
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。