Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
math-hiyoko opened this issue May 14, 2024 · 0 comments
Open

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

math-hiyoko opened this issue May 14, 2024 · 0 comments

Comments

@math-hiyoko
Copy link

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":[]}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant