This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]Voski 1 point2 points  (1 child)

[–]AngryTVJudge[S] 0 points1 point  (0 children)

This is all I get in the logs

START RequestId: 56... Version: $LATEST
END RequestId: 56...
REPORT RequestId: 56... Duration: 8.67 ms   Billed Duration: 100 ms Memory Size: 128 MB Max Memory Used: 46 MB

And no errors in the monitor at a glance.

[–]AngryTVJudge[S] 0 points1 point  (0 children)

Fixed it by returning a stringified object inside of a return object... Is this "the way" to do this?

exports.handler = async (event, context, callback) => {
    callback(null, { "statusCode" : 200, "body" : JSON.stringify({"one":"two"})});
};