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.

貢獻指南

開啟貢獻指南

研究方向

首先追蹤 RIE 如何處理 Lambda 函式程序終止,以及它如何建構回應。將該路徑與 issue 中的正式環境範例進行比較;當回應非空,並以所示錯誤格式包含程序結束狀態時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
go
領域
backend
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
描述清楚
新手友好度
45/100

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

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