Skip to content

Breaking error when upgrading Hyper from 0.14.X to 1.X.X #2618

Answered by CaliViking
CaliViking asked this question in Q&A
Discussion options

You must be logged in to vote

@jplatte - Thank you so much for following up on this.

I realized that I had an issue where I specifically had to state that I wanted "0.7.4", not just "0". Axum loaded a previous version. I think that one of the issues was that I have both a Hyper TCP server and an Axum HTTP server in the same executable.

I had to change the way I bound to the server from:

    let bound_server = axum::Server::bind(&socket_address);
    info!("Bound the HTTP server to socket address: {socket_address}");

    match bound_server.serve(app.into_make_service()).await {
        Ok(_) => {
            info!("HTTP server stopped");
        }
        Err(err) => {
            info!("Error running the HTTP server:…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@CaliViking
Comment options

Answer selected by jplatte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2617 on February 26, 2024 07:34.