You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Doing tests with http-axum example, I get the following error:
INFO invoke server listening on [::]:9000 INFO starting lambda function function="_" manifest="Cargo.toml" Compiling test-project v0.1.0 (/home/calambrenet/RustWorkspace/lambda/test-project) error[E0277]: the trait boundRouter<>: Service<lambda_http::http::Request<lambda_http::Body>>is not satisfied --> src/main.rs:52:9 | 52 | run(app).await | --- ^^^ the traitService<lambda_http::http::Request<lambda_http::Body>>is not implemented forRouter<>| | | required by a bound introduced by this call | = help: the following other types implement traitService: <Router as Service<axum::http::Request<B>>> <Router as Service<IncomingStream<'_>>> note: required by a bound in lambda_http::run--> /home/calambrenet/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lambda_http-0.8.3/src/lib.rs:191:8 | 189 | pub async fn run<'a, R, S, E>(handler: S) -> Result<(), Error> | --- required by a bound in this function 190 | where 191 | S: Service<Request, Response = R, Error = E>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound inrun`
For more information about this error, try rustc --explain E0277.
error: could not compile test-project (bin "test-project") due to previous error
ERROR command exited code=101
`
Any ideas?
thx
The text was updated successfully, but these errors were encountered:
Comments on closed issues are hard for the maintainers of this repository to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Doing tests with http-axum example, I get the following error:
INFO invoke server listening on [::]:9000 INFO starting lambda function function="_" manifest="Cargo.toml" Compiling test-project v0.1.0 (/home/calambrenet/RustWorkspace/lambda/test-project) error[E0277]: the trait bound
Router<>: Service<lambda_http::http::Request<lambda_http::Body>>is not satisfied --> src/main.rs:52:9 | 52 | run(app).await | --- ^^^ the trait
Service<lambda_http::http::Request<lambda_http::Body>>is not implemented for
Router<>| | | required by a bound introduced by this call | = help: the following other types implement trait
Service: <Router as Service<axum::http::Request<B>>> <Router as Service<IncomingStream<'_>>> note: required by a bound in
lambda_http::run--> /home/calambrenet/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lambda_http-0.8.3/src/lib.rs:191:8 | 189 | pub async fn run<'a, R, S, E>(handler: S) -> Result<(), Error> | --- required by a bound in this function 190 | where 191 | S: Service<Request, Response = R, Error = E>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in
run`For more information about this error, try
rustc --explain E0277
.error: could not compile
test-project
(bin "test-project") due to previous errorERROR command exited code=101
`
Any ideas?
thx
The text was updated successfully, but these errors were encountered: