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

Panic: 'executor must be set' from hyper-0.14.15 when running examples. #59

Closed
staninprague opened this issue Dec 8, 2021 · 0 comments · Fixed by #61
Closed

Panic: 'executor must be set' from hyper-0.14.15 when running examples. #59

staninprague opened this issue Dec 8, 2021 · 0 comments · Fixed by #61

Comments

@staninprague
Copy link

When running examples with the current cargo.toml (hyper 0.14), I'm getting the following error from hyper:

thread 'main' panicked at 'executor must be set', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.14.15/src/common/exec.rs:54:21

Happening here in hyper:

                #[cfg(feature = "tcp")]
                {
                    tokio::task::spawn(fut);
                }
                #[cfg(not(feature = "tcp"))]
                {
                    // If no runtime, we need an executor!
                    panic!("executor must be set")
                }

Looking at the above and just adding the "tcp" feature to hyper dependencies fixes the problem:

hyper = { version = "0.14", features = ["client", "http2", "tcp"] }

Does it work for you without the "tcp" feature?

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

Successfully merging a pull request may close this issue.

1 participant