Skip to content

The return value of the lambda function is not expected #3222

@x-wk

Description

@x-wk

Describe the bug

I have a simple lambda function like this

exports.handler = async (event) => {
    return "string result";
};

when I invoke it via Java sdk the return value is: (double quotes around)

"string result"

Expected Behavior

string result

Current Behavior

As above

Reproduction Steps

As above

Possible Solution

No response

Additional Information/Context

No response

AWS Java SDK version used

2.17.194

JDK version used

jdk 11

Operating System and version

win10

Metadata

Metadata

Assignees

No one assigned

    Labels

    guidanceQuestion that needs advice or information.response-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 10 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions