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
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!
The text was updated successfully, but these errors were encountered:
Hello!
I updated tower-http version from 0.4.4 to 0.5.0 and got the problem. Axum version: 0.6.20
Need to wait for a new version axum (0.7.0) for use new versions of tower-http?
Thanks!
The text was updated successfully, but these errors were encountered: