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.

posta un anno fa313 visualizzazioni
1 Risposta
0
Risposta accettata

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

con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande