hanabu / lambda-web

Run Rust web frameworks on AWS Lambda
MIT License
115 stars 38 forks source link

Issues when running API gateway REST lambda integration requests. #9

Open sedrik opened 2 years ago

sedrik commented 2 years ago

Hi

I get the following error when running a request to an API REST gateway that uses a lambda integration. I could not find a easy way to print the actual request sent from the API gateway so if you know a way please tell me and I can give a better error report.

Error: Error("data did not match any variant of untagged enum LambdaHttpEvent", line: 0, column: 0)

sedrik commented 2 years ago

By the way, I am using Axum 0.4.8 but have tried with latest Axum 0.3 version as well with the same result.

drskur commented 2 years ago

rocket, warp is same.. Error: Error("data did not match any variant of untagged enum LambdaHttpEvent", line: 0, column: 0)

drskur commented 2 years ago

REST API Gateway is not working.

But HTTP API Gateway ($default) and Lambda function url is working.

knnmran commented 1 year ago

Same issue for me: Endpoint response body before transformations: {"errorType":"&serde_json::error::Error","errorMessage":"data did not match any variant of untagged enum LambdaHttpEvent"}