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

Unexpected empty response when lambda function's process terminates

オープン
#86 コメント 0 件 リアクション 5 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
1.1k
フォーク
118
平均マージ
42分
マージ済み PR(30日)
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 を短くまとめたダイジェスト。