LAMBDA_RUNTIME Failed to get next invocation. No Response from endpoint
还没有人认领这个 Issue。
评估
调研方向
从报告的 LAMBDA_RUNTIME 日志和主函数的 run_handler 入口点开始,然后跟踪 handler(req) 是否返回,以及在哪里到达 ShutdownAPI。根据 runtime 的行为确认预期的生命周期,并记录 CloudWatch 中应该显示的内容;完成的标准是解释清楚 endpoint 消息和缺失的打印输出。
由索引模型根据 Issue 内容生成。
描述
Hi guys!
I just writing some lambdas in c++ using the aws-lambda-cpp
i checking my log and i have this Error in my log:
[ERROR] [1553201323958] LAMBDA_RUNTIME Failed to get next invocation. No Response from endpoint
do you know if this is normal? because i check and debug my code but i don't found nothing.
what my lambda do is extract the body from SQS request, and make a slack post with the message.
for that i use curl and have the ssl disable
other thing is i dont see a print message that i have in the main after the
invocation_response handler(invocation_request const &req) {
return invocation_response::success();
}
this is my main:
int main() {
//use AWS namespace and libs
using namespace Aws;
//set the log for the sdk
SDKOptions options;
//init AWS API
InitAPI(options);
{
auto handler_function = [](aws::lambda_runtime::invocation_request const &req) {
return handler(req);
};
run_handler(handler_function);
}
// shutdown the aws api
std::cout << "ShutdownAPI api" << "\n";
ShutdownAPI(options);
std::cout << "exit" << "\n";
//exit
return 0;
}
i dont see the Shutdown and exit print in the cloud-watch log
so the question
the ShutdownAPI(options); and the return 0 is never called?
thank you!!!
- 主要语言
- C++
- 星标
- 465
- 派生
- 98
- 平均合并
- 1 小时 16 分钟
- 30 天内合并 PR
- 2
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
awslabs/aws-lambda-cpp 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 35/100
awslabs/aws-lambda-cpp#205 ·
-
难度 3/5 1-2 天 新手友好度 35/100
awslabs/aws-lambda-cpp#196 ·
-
难度 4/5 3-5 天 新手友好度 35/100
awslabs/aws-lambda-cpp#195 · 11 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
awslabs/aws-lambda-cpp#194 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
awslabs/aws-lambda-cpp#188 ·
查看 awslabs/aws-lambda-cpp 的全部 Issue
相似的 Issue
-
ai_reviewed
难度 2/5 1-3 小时 新手友好度 68/100
ydb-platform/ydb#53869 · 3 条评论 ·
-
bug cert blocker needs triage
难度 2/5 1-3 小时 新手友好度 82/100
project-chip/connectedhomeip#74373 ·
-
upstream update
难度 2/5 1-3 小时 新手友好度 75/100
conan-io/conan-center-index#31035 ·
-
Bug
难度 2/5 1-3 小时 新手友好度 68/100
-
documentation
难度 1/5 1 小时以内 新手友好度 85/100
vllm-project/vllm-ascend#17329 ·