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.

已提问 1 年前293 查看次数
1 回答
0
已接受的回答

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

已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则