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

JSON and stringified JSON bodies are treated the same offline but not online #834

Closed
gurushida opened this issue Nov 8, 2019 · 0 comments
Labels

Comments

@gurushida
Copy link

I found a problem similar to the one described in #702

If I have a lambda that expects JSON, I get a different behaviour online when I send the JSON like {"label":"foo"} vs when I send the stringified JSON "{\"label\":\"foo\"}".
However, I get the same behaviour offline where my lambda always receives an APIGatewayProxyEvent object where the body is a string containing
{"label":"foo"} regardless of what is sent.

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

No branches or pull requests

2 participants