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 年前檢視次數 319 次
1 個回答
0
已接受的答案

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

已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南