-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Error: Thread panicked, must be called from the context of Tokio runtime #2314
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
Comments
thread 'main' panicked at 'there is no reactor running, must be called from the context of Tokio runtime'
Your hunch is correct. You can work around using Tokio 0.2 or use Tokio 0.3 with |
@davidbarsky So hyper is unusable right now with tokio 0.3 until #2302 is complete? |
It is usable with the version of tokio it is developed against. |
Hyper 0.13 depends on Tokio 0.2. You can use Hyper 0.13 with Tokio 0.3 if you use the provided compatibility library, tokio-compat-02. If you don't to use tokio-compat-02, you'll need to wait until #2302 is complete. |
Ok, got it, thanks |
Uh oh!
There was an error while loading. Please reload this page.
Running the simple example from
hyper.rs
:Causes a panic:
Running other examples like mini-redis is totally fine. I suspect this has something to do with the tokio-0.2.22 dependency of h2 and hyper.
Environment
The text was updated successfully, but these errors were encountered: