actix-web DOES NOT build because of `awc` dependecy compilation error

Created on 19 Aug 2019  路  3Comments  路  Source: actix/actix-web

It seems that awc is not a direct dependency of actix-http but it cannot be successfully built because of this error

error[E0277]: the trait bound `serde_urlencoded::ser::Error: actix_http::error::ResponseError` is not satisfied
   --> /home/XXX/.cargo/registry/src/github.com-1ecc6299db9ec823/awc-0.2.3/src/request.rs:504:44
    |
504 |             Err(e) => return Either::A(err(Error::from(e).into())),
    |                                            ^^^^^^^^^^^ the trait `actix_http::error::ResponseError` is not implemented for `serde_urlencoded::ser::Error`
    |
    = note: required because of the requirements on the impl of `std::convert::From<serde_urlencoded::ser::Error>` for `actix_http::error::Error`
    = note: required by `std::convert::From::from`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.
error: Could not compile `awc`.

I compiled it on Rust 1.37 on linux and the version of actix-http 0.2.9

Most helpful comment

Had the same issue here. cargo clean and removing Cargo.lock fixed it for me.

All 3 comments

What exact commands will reproduce? Could you post a snippet?

Also, a quick cargo update sometimes resolves these sorts of problems.

Sorry I don't even understand what happend but it's now resolved, I used cargo clean and removed the registry in my ~/.cargo directory then replaced actix-web version with an older one 1.0.0 and it worked for now. I never experienced anything like this since I started coding in Rust but those were the worst 2 hours in my excellent Rust experience so far. It seems it is related to some cache issue but it's now gone

Had the same issue here. cargo clean and removing Cargo.lock fixed it for me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kocoten1992 picture kocoten1992  路  3Comments

djc picture djc  路  3Comments

fafhrd91 picture fafhrd91  路  5Comments

Eilie picture Eilie  路  5Comments

mcelkys picture mcelkys  路  4Comments