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
thread 'main' panicked at 'there is no reactor running, must be called from the context of a Tokio 1.x runtime', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.4.0/src/runtime/context.rs:37:26
#68
Open
Json1949 opened this issue
Apr 1, 2021
· 6 comments
You need to run this under Tokio 1.0 like error says. According to Cargo.toml and incomplete main.rs you might be running it under async-std runtime instead.
I do have experimental support for async-std in a branch, but this isn't ready yet. The current default is Tokio 1.x, but there is also support for Tokio 0.2 behind a feature flag if necessary.
Hello, unfortunately I'm not familiar with Actix Web, but @nazar-pc 's comment above is correct in the sense this error means that a Tokio runtime isn't running which is required for this library to work.
So I'm guessing something has recently changed with Actix Web, perhaps allowing it to run under different async runtimes?
But if Actix is still Tokio based then something else is going on.
Actix-web 3.x uses Tokio 0.2, while 4.x (which is beta currently) switched to Tokio 1.0.
Just pick versions correctly, there is nothing to do about it in this crate.
You need to run this under Tokio 1.0 like error says. According to Cargo.toml and incomplete main.rs you might be running it under async-std runtime instead.
main.rs
Cargo.toml
The text was updated successfully, but these errors were encountered: