Sending command via Node.js SDK results in 503 error

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

Adding logging code to the SDK reveals:

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

It worked earlier today.

asked a year ago357 views
1 Answer
Accepted Answer

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

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions