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

support tower-http 0.5 #2332

Closed
dayvejones opened this issue Nov 21, 2023 · 1 comment
Closed

support tower-http 0.5 #2332

dayvejones opened this issue Nov 21, 2023 · 1 comment

Comments

@dayvejones
Copy link
Contributor

Hello!

I updated tower-http version from 0.4.4 to 0.5.0 and got the problem. Axum version: 0.6.20

 let app = Router::new()
        .route("/", get(handler))
        .layer(TraceLayer::new_for_http())
error[E0277]: the trait bound `tower_http::trace::Trace<Route<_>, SharedClassifier<ServerErrorsAsFailures>>: Service<Request<_>>` is not satisfied
   --> src\router.rs:129:12
    |
129 |     .layer(TraceLayer::new_for_http())
    |      ----- ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Service<Request<_>>` is not implemented for `tower_http::trace::Trace<Route<_>, SharedClassifier<ServerErrorsAsFailures>>`        
    |      |
    |      required by a bound introduced by this call
    |
    = help: the trait `Service<http::request::Request<ReqBody>>` is implemented for `tower_http::trace::Trace<S, M, MakeSpanT, OnRequestT, OnResponseT, OnBodyChunkT, OnEosT, OnFailureT>

Need to wait for a new version axum (0.7.0) for use new versions of tower-http?

Thanks!

@davidpdrsn
Copy link
Member

The work is being done here #1882

@davidpdrsn davidpdrsn closed this as not planned Won't fix, can't repro, duplicate, stale Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants