-
Notifications
You must be signed in to change notification settings - Fork 361
Data did not match any variant of untagged enum LambdaRequest when invoking with sample JSON #655
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
Comments
There is no specification about the payloads, so it's hard to tell. Other languages are definitely more forgiving than Rust parsing those examples. Given the payload that you have in the description, it should be easy to add a new test case in the apigw module to validate that those payloads are supported: |
|
In my case, I ran into this |
When invoking a lambda_http service function using the template payload from the Lambda test console, serde fails to deserialize.
Cargo.toml:
bin/upload_err.rs:
example.json:
Runner:
Invoke:
Log:
The text was updated successfully, but these errors were encountered: