-
Notifications
You must be signed in to change notification settings - Fork 364
Closed
Description
I am trying to update my application from lambda_http from 0.13 to 0.,14 and getting error
the trait bound `LambdaService<Router>: Service<http::Request<lambda_http::Body>>` is not satisfied
the trait `Service<http::Request<aws_lambda_events::encodings::http::Body>>` is implemented for `LambdaService<Router>`
for that trait implementation, expected `aws_lambda_events::encodings::http::Body`, found `lambda_http::Body`
here is my start function
pub async fn start(mut self, name: &str) {
Self::configure_tracing(name);
self = self.register_middleware();
let app = tower::ServiceBuilder::new()
.layer(axum_aws_lambda::LambdaLayer::default())
.service(self.router);
lambda_http::run(app).await.unwrap();
}
i have tower=0.5.2 and axum-aws-lambda=0.9.0
What do i need to change to get it compiled?
It works when i remove: .layer(axum_aws_lambda::LambdaLayer::default())
Thanks
Metadata
Metadata
Assignees
Labels
No labels