awslabs / awslabs/aws-lambda-cpp
LAMBDA_RUNTIME Failed to get next invocation. No Response from endpoint
- Linguagem predominante
- C++
- Estrelas
- 465
- Forks
- 98
- Merge médio
- 12h 47min
- PRs com merge (30d)
- 3
Descrição
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!!!
Guia de contribuição
Direção de pesquisa
Comece pelo log LAMBDA_RUNTIME relatado e pelo ponto de entrada run_handler da função principal; em seguida, rastreie se handler(req) retorna e onde ShutdownAPI é alcançado. Confirme o ciclo de vida esperado com base no comportamento do runtime e documente o que deve estar visível no CloudWatch; considera-se concluído quando a mensagem do endpoint e as impressões ausentes estiverem explicadas.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- aws, cpp
- Domínio
- backend, cloud
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Precisa de esclarecimento
- Facilidade para iniciantes
- 30/100