Sending command via Node.js SDK results in 503 error

0
await lambda.send(
  new GetFunctionConfigurationCommand({
    FunctionName: name,
  }),
);
SyntaxError: Unexpected token '<', "<html>
<h"... is not valid JSON

Adding logging code to the SDK reveals:

<html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
</body>
</html>

It worked earlier today.

feita há um ano294 visualizações
1 Resposta
0
Resposta aceita

Turns out to be wrong function names, probably containing invalid characters. A 400 instead of 503 could really have helped.

respondido há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas