ntex: Ntex runtime panic
Hello, I have opened a PR on Shuttle where I am trying to provide an integration with the Ntex framework. Unfortunately there is a runtime error when we are running the basic example.
thread 'tokio-runtime-worker' panicked at /home/jonaro00/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ntex-rt-0.4.12/src/lib.rs:192:9:
`spawn_local` called from outside of a `task::LocalSet`
The relevant PR is: https://github.com/shuttle-hq/shuttle/pull/1707
Are there any indications on what I might be doing wrong?
Thank you in advance!
About this issue
- Original URL
- State: closed
- Created 3 months ago
- Comments: 20 (8 by maintainers)
you can try to modify System builder and allow to run it with tokio’s Handler
https://github.com/ntex-rs/ntex/blob/395cf694e5c86f82a67edbd42514c435a35b674d/ntex-rt/src/lib.rs#L170