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)

Most upvoted comments

you can try to modify System builder and allow to run it with tokio’s Handler