awslabs / awslabs/aws-lambda-cpp
LAMBDA_RUNTIME Failed to get next invocation. No Response from endpoint
- Ngôn ngữ chính
- C++
- Star
- 465
- Fork
- 98
- Merge trung bình
- 12 giờ 47 phút
- Pull request đã merge (30 ngày)
- 3
Mô tả
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!!!
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với log LAMBDA_RUNTIME đã được báo cáo và điểm vào run_handler của hàm chính, sau đó theo dõi xem handler(req) có trả về hay không và ShutdownAPI được tiếp cận ở đâu. Xác nhận vòng đời dự kiến dựa trên hành vi của runtime và ghi lại những gì cần hiển thị trong CloudWatch; hoàn thành có nghĩa là đã giải thích được thông báo endpoint và các bản in bị thiếu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- aws, cpp
- Lĩnh vực
- backend, cloud
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 30/100