I encountered this panic initially in GitHub Actions (someone else has ran into this and has filed lycheeverse/lychee-action#4), but I have been able to reproduce this error in my local environment myself (lychee 0.5.0), so I'm opening this issue here.
thread 'tokio-runtime-worker' panicked at 'not currently running on the Tokio runtime.', /Users/caleb/Library/Caches/Homebrew/cargo_cache/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/handle.rs:118:28
stack backtrace:
0: 0x10ebd047e - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h3b6ed74a60c4de30
1: 0x10ec06c0e - core::fmt::write::h72dd6ddbc116ef3c
2: 0x10ebcf86a - std::io::Write::write_fmt::h033803ce14d847cc
3: 0x10ebe4639 - std::panicking::default_hook::{{closure}}::h040276b51a1a4749
4: 0x10ebe435e - std::panicking::default_hook::h2a43ed83163cecb9
5: 0x10ebe4bca - std::panicking::rust_panic_with_hook::h15f3dba6c099e04e
6: 0x10ebd0b35 - std::panicking::begin_panic_handler::{{closure}}::h33fb39231ad9a88d
7: 0x10ebd05f8 - std::sys_common::backtrace::__rust_end_short_backtrace::hd5ec6f84e4df1d34
8: 0x10ebe4743 - _rust_begin_unwind
9: 0x10ec2518f - core::panicking::panic_fmt::h7889f3b8e7c118f7
10: 0x10ec24c5a - core::option::expect_failed::h5fe3576924a3bde2
11: 0x10ea80ed4 - tokio::runtime::handle::Handle::current::h89cdd643080c74fa
12: 0x10e969927 - tokio::runtime::blocking::pool::spawn_blocking::h1a37cd83de30f186
13: 0x10e979d28 - <hyper::client::connect::dns::GaiResolver as tower_service::Service<hyper::client::connect::dns::Name>>::call::h61e571d51b6de036
14: 0x10e8bd8c3 - <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h69dc60019f0f2088
15: 0x10e8c49d1 - <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::hdd28a6be8b7b5042
16: 0x10e8b89c1 - <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h29531a238642b647
17: 0x10e8c5d5b - <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::hf9e83dde27a4801c
18: 0x10e8b7195 - <hyper::service::oneshot::Oneshot<S,Req> as core::future::future::Future>::poll::h6f7b6ee34c74f84a
19: 0x10e9345e9 - <futures_util::future::future::map::Map<Fut,F> as core::future::future::Future>::poll::h70474202a53b3651
20: 0x10e934941 - <futures_util::future::future::map::Map<Fut,F> as core::future::future::Future>::poll::ha14d54d9ca61ad28
21: 0x10e8ff195 - <futures_util::future::try_future::try_flatten::TryFlatten<Fut,<Fut as futures_core::future::TryFuture>::Ok> as core::future::future::Future>::poll::h587492a7f2201d74
22: 0x10e8931e8 - <hyper::common::lazy::Lazy<F,R> as core::future::future::Future>::poll::hb1a677b7f21c70e0
23: 0x10e932f9c - <futures_util::future::future::map::Map<Fut,F> as core::future::future::Future>::poll::h1776ff857ff61130
24: 0x10e923beb - <futures_util::future::future::flatten::Flatten<Fut,<Fut as core::future::future::Future>::Output> as core::future::future::Future>::poll::hde9bd31e7767b2a1
25: 0x10e936163 - <futures_util::future::future::map::Map<Fut,F> as core::future::future::Future>::poll::he6181a9c8bf8decf
26: 0x10e8ff4fa - <futures_util::future::try_future::try_flatten::TryFlatten<Fut,<Fut as futures_core::future::TryFuture>::Ok> as core::future::future::Future>::poll::h59a74d989a93a7f6
27: 0x10e912dfb - <futures_util::future::poll_fn::PollFn<F> as core::future::future::Future>::poll::h4e7335b26450df9d
28: 0x10e96c656 - <hyper::client::ResponseFuture as core::future::future::Future>::poll::h92cb2c7ab9f8ecd9
29: 0x10e916d74 - <reqwest::async_impl::client::PendingRequest as core::future::future::Future>::poll::h5ecc6d3415cf3506
30: 0x10e916c87 - <reqwest::async_impl::client::Pending as core::future::future::Future>::poll::hb8d12fd76e64dbc8
31: 0x10e819afb - <futures_util::future::future::map::Map<Fut,F> as core::future::future::Future>::poll::hf64ca53c51c6012c
32: 0x10e82742d - <futures_util::future::try_future::try_flatten::TryFlatten<Fut,<Fut as futures_core::future::TryFuture>::Ok> as core::future::future::Future>::poll::h06472600e0d834db
33: 0x10e8181c9 - <futures_util::future::future::map::Map<Fut,F> as core::future::future::Future>::poll::h588738c9b92b7f0f
34: 0x10e827f34 - <futures_util::future::try_future::try_flatten::TryFlatten<Fut,<Fut as futures_core::future::TryFuture>::Ok> as core::future::future::Future>::poll::h8c9611ad63cec342
35: 0x10e82af0e - <futures_util::future::try_future::AndThen<Fut1,Fut2,F> as core::future::future::Future>::poll::h618b0c2ebb4e0f8a
36: 0x10e818704 - <futures_util::future::future::map::Map<Fut,F> as core::future::future::Future>::poll::h71d1b9106303bf37
37: 0x10e82aece - <futures_util::future::try_future::MapOk<Fut,F> as core::future::future::Future>::poll::h8686e11037584f66
38: 0x10e53cdd8 - <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h4159be52d6d7d02a
39: 0x10e5a6806 - <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h9e44a18f075958ea
40: 0x10e5fa9f2 - tokio::runtime::task::harness::Harness<T,S>::poll::hb87397d6c8ae81a1
41: 0x10ea8876f - std::thread::local::LocalKey<T>::with::hc7b3d1d25d224e3a
42: 0x10eaa46cf - tokio::runtime::thread_pool::worker::Context::run_task::h29d701a9af81405d
43: 0x10eaa3c03 - tokio::runtime::thread_pool::worker::Context::run::h88f812f18928c39b
44: 0x10ea8ac05 - tokio::macros::scoped_tls::ScopedKey<T>::set::ha079f29468eb40d4
45: 0x10eaa336d - tokio::runtime::thread_pool::worker::run::hb4225ff6226cfa1a
46: 0x10eaa0f2f - tokio::runtime::task::core::Core<T,S>::poll::habdfb8e2a0dc1545
47: 0x10eaa8916 - <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc521d0629d24b295
48: 0x10ea864a5 - tokio::runtime::task::harness::Harness<T,S>::poll::h1255d0013f67039a
49: 0x10ea9bc08 - tokio::runtime::blocking::pool::Inner::run::h48447d92da9b7811
50: 0x10ea88119 - std::sys_common::backtrace::__rust_begin_short_backtrace::hd03a52f4a358aca2
51: 0x10eaad455 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h42e03a1e69101f0f
52: 0x10ebebf4b - std::sys::unix::thread::Thread::new::thread_start::hed7aa7efa61a9b35
53: 0x7fff2033e950 - __pthread_start
(This particular trace repeats over and over again, presumably once per problematic link check attempt.)
Lychee was built with Rust 1.49.0 and is running on macOS 11.1 Big Sur (Intel). I was using a GITHUB_TOKEN
. Please let me know if you need any further information about my environment, etc.