awslabs / awslabs/aws-lambda-cpp
invocation_response::failure does not work with HTTP API Gateway ?
- 主要言語
- C++
- スター
- 465
- フォーク
- 98
- 平均マージ
- 12時間 47分
- マージ済み PR(30日)
- 3
説明
I'm using the HTTP API Gateway, my c++ runtime is built with amazonlinux:latest in a docker image.
All responses that return with invocation_response::failure return an Error 500, Internal Server Error.
```
#include
using namespace aws::lambda_runtime;
static invocation_response my_handler(invocation_request const& req)
{
return invocation_response::failure("error message here"/*error_message*/, "error type here" /*error_type*/);
}
int main()
{
run_handler(my_handler);
return 0;
}
```
However, when I use invocation_response::success, the message arrives on my requesting client, but I ofc. can only send json objects back. (Anyone got an idea why that is ?)
I read everything google found and digged through all kinds of files and aws docus, I could not find out where the problem is. Could someone please give me a hint if the args have to match some specific ones or what I am doing wrong ?
Thanks!
コントリビューションガイド
調査の方向性
まず invocation_response::failure を run_handler を通して追跡し、HTTP API Gateway 経由で呼び出した場合の invocation_response::success との動作を比較します。指定された Amazon Linux C++ runtime を使用してサンプル handler を再現し、観測された HTTP 500 が想定されたものか、runtime の障害を示しているのかを判断します。動作が説明され、検証されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- aws, cpp
- 領域
- api, backend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100