Skip to content

Extra Space Before "stackTrace" in Error Payload JSON #197

Open
@math-hiyoko

Description

@math-hiyoko

Describe the issue

I noticed that the error payload JSON generated by aws::lambda_runtime::invocation_response::failure includes an unexpected space before the "stackTrace" key. This extra space seems unnecessary and affects the consistency of the JSON format output.

R"(", "stackTrace":[]})";

Expected behavior

I expected the JSON output not to include unnecessary spaces before any keys to maintain consistency and compactness of the format. The preferable output should be: {"errorMessage":"message of error","errorType":"type of error","stackTrace":[]}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions