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.

demandé il y a un an314 vues
1 réponse
0
Réponse acceptée

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

répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions