Skip to content

Instantly share code, notes, and snippets.

@5225225
Created April 26, 2021 10:14
Show Gist options
  • Save 5225225/dd931721233609b6e6ce39d0705b0119 to your computer and use it in GitHub Desktop.
Save 5225225/dd931721233609b6e6ce39d0705b0119 to your computer and use it in GitHub Desktop.
listening on http://127.0.0.1:8080
starting new connection from 127.0.0.1:38724
thread 'async-std/runtime' panicked at 'called `Result::unwrap()` on an `Err` value: String slice should be valid ASCII
Stack backtrace:
0: anyhow::error::<impl core::convert::From<E> for anyhow::Error>::from
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/anyhow-1.0.40/src/error.rs:519:25
1: <T as core::convert::Into<U>>::into
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/convert/mod.rs:538:9
2: http_types::error::Error::new
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/http-types-2.11.0/src/error.rs:49:20
3: <http_types::error::Error as core::convert::From<E>>::from
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/http-types-2.11.0/src/error.rs:202:9
4: <&str as http_types::headers::to_header_values::ToHeaderValues>::to_header_values
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/http-types-2.11.0/src/headers/to_header_values.rs:48:70
5: http_types::headers::headers::Headers::insert
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/http-types-2.11.0/src/headers/headers.rs:54:36
6: http_types::headers::headers::Headers::append
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/http-types-2.11.0/src/headers/headers.rs:70:17
7: http_types::request::Request::append_header
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/http-types-2.11.0/src/request.rs:461:9
8: async_h1::server::decode::decode::{{closure}}
at ./src/server/decode.rs:83:9
9: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:80:19
10: <async_std::future::timeout::TimeoutFuture<F> as core::future::future::Future>::poll
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-std-1.9.0/src/future/timeout.rs:64:15
11: async_std::future::timeout::timeout::{{closure}}
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-std-1.9.0/src/future/timeout.rs:36:5
12: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:80:19
13: async_h1::server::Server<RW,F,Fut>::accept_one::{{closure}}
at ./src/server/mod.rs:117:19
14: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:80:19
15: async_h1::server::Server<RW,F,Fut>::accept::{{closure}}
at ./src/server/mod.rs:102:46
16: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:80:19
17: async_h1::server::accept::{{closure}}
at ./src/server/mod.rs:40:5
18: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:80:19
19: server::accept::{{closure}}
at ./examples/server.rs:29:5
20: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:80:19
21: server::main::main::{{closure}}::{{closure}}
at ./examples/server.rs:18:31
22: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:80:19
23: <async_std::task::builder::SupportTaskLocals<F> as core::future::future::Future>::poll::{{closure}}
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-std-1.9.0/src/task/builder.rs:199:17
24: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}}
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-std-1.9.0/src/task/task_locals_wrapper.rs:60:13
25: std::thread::local::LocalKey<T>::try_with
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:376:16
26: std::thread::local::LocalKey<T>::with
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:352:9
27: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-std-1.9.0/src/task/task_locals_wrapper.rs:55:9
28: <async_std::task::builder::SupportTaskLocals<F> as core::future::future::Future>::poll
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-std-1.9.0/src/task/builder.rs:197:13
29: async_executor::Executor::spawn::{{closure}}
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-executor-1.4.1/src/lib.rs:144:13
30: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:80:19
31: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:120:9
32: async_task::raw::RawTask<F,T,S>::run
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-task-4.0.3/src/raw.rs:489:20
33: async_task::runnable::Runnable::run
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-task-4.0.3/src/runnable.rs:309:18
34: async_executor::Executor::run::{{closure}}::{{closure}}
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-executor-1.4.1/src/lib.rs:235:21
35: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:80:19
36: <futures_lite::future::Or<F1,F2> as core::future::future::Future>::poll
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-lite-1.11.3/src/future.rs:529:33
37: async_executor::Executor::run::{{closure}}
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-executor-1.4.1/src/lib.rs:242:9
38: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:80:19
39: <futures_lite::future::Or<F1,F2> as core::future::future::Future>::poll
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-lite-1.11.3/src/future.rs:529:33
40: async_io::driver::block_on
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-io-1.4.1/src/driver.rs:142:33
41: async_global_executor::reactor::block_on::{{closure}}
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-global-executor-2.0.2/src/reactor.rs:3:18
42: async_global_executor::reactor::block_on
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-global-executor-2.0.2/src/reactor.rs:12:5
43: async_global_executor::threading::thread_main_loop::{{closure}}::{{closure}}
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-global-executor-2.0.2/src/threading.rs:95:17
44: std::thread::local::LocalKey<T>::try_with
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:376:16
45: std::thread::local::LocalKey<T>::with
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:352:9
46: async_global_executor::threading::thread_main_loop::{{closure}}
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-global-executor-2.0.2/src/threading.rs:89:13
47: std::panicking::try::do_call
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:379:40
48: __rust_try
49: std::panicking::try
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:343:19
50: std::panic::catch_unwind
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:431:14
51: async_global_executor::threading::thread_main_loop
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-global-executor-2.0.2/src/threading.rs:88:12
52: core::ops::function::FnOnce::call_once
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:227:5
53: std::sys_common::backtrace::__rust_begin_short_backtrace
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys_common/backtrace.rs:125:18
54: std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/mod.rs:481:17
55: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:344:9
56: std::panicking::try::do_call
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:379:40
57: __rust_try
58: std::panicking::try
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:343:19
59: std::panic::catch_unwind
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:431:14
60: std::thread::Builder::spawn_unchecked::{{closure}}
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/mod.rs:480:30
61: core::ops::function::FnOnce::call_once{{vtable.shim}}
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:227:5
62: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
at /rustc/42816d61ead7e46d462df997958ccfd514f8c21c/library/alloc/src/boxed.rs:1546:9
<alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
at /rustc/42816d61ead7e46d462df997958ccfd514f8c21c/library/alloc/src/boxed.rs:1546:9
std::sys::unix::thread::Thread::new::thread_start
at /rustc/42816d61ead7e46d462df997958ccfd514f8c21c/library/std/src/sys/unix/thread.rs:71:17
63: start_thread
64: clone', /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/http-types-2.11.0/src/headers/headers.rs:54:62
stack backtrace:
0: rust_begin_unwind
at /rustc/42816d61ead7e46d462df997958ccfd514f8c21c/library/std/src/panicking.rs:493:5
1: core::panicking::panic_fmt
at /rustc/42816d61ead7e46d462df997958ccfd514f8c21c/library/core/src/panicking.rs:92:14
2: core::result::unwrap_failed
at /rustc/42816d61ead7e46d462df997958ccfd514f8c21c/library/core/src/result.rs:1355:5
3: core::result::Result<T,E>::unwrap
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/result.rs:1037:23
4: http_types::headers::headers::Headers::insert
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/http-types-2.11.0/src/headers/headers.rs:54:36
5: http_types::headers::headers::Headers::append
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/http-types-2.11.0/src/headers/headers.rs:70:17
6: http_types::request::Request::append_header
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/http-types-2.11.0/src/request.rs:461:9
7: async_h1::server::decode::decode::{{closure}}
at ./src/server/decode.rs:83:9
8: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:80:19
9: <async_std::future::timeout::TimeoutFuture<F> as core::future::future::Future>::poll
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-std-1.9.0/src/future/timeout.rs:64:15
10: async_std::future::timeout::timeout::{{closure}}
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-std-1.9.0/src/future/timeout.rs:36:5
11: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:80:19
12: async_h1::server::Server<RW,F,Fut>::accept_one::{{closure}}
at ./src/server/mod.rs:117:19
13: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:80:19
14: async_h1::server::Server<RW,F,Fut>::accept::{{closure}}
at ./src/server/mod.rs:102:46
15: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:80:19
16: async_h1::server::accept::{{closure}}
at ./src/server/mod.rs:40:5
17: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:80:19
18: server::accept::{{closure}}
at ./examples/server.rs:29:5
19: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:80:19
20: server::main::main::{{closure}}::{{closure}}
at ./examples/server.rs:18:31
21: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:80:19
22: <async_std::task::builder::SupportTaskLocals<F> as core::future::future::Future>::poll::{{closure}}
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-std-1.9.0/src/task/builder.rs:199:17
23: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}}
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-std-1.9.0/src/task/task_locals_wrapper.rs:60:13
24: std::thread::local::LocalKey<T>::try_with
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:376:16
25: std::thread::local::LocalKey<T>::with
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:352:9
26: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-std-1.9.0/src/task/task_locals_wrapper.rs:55:9
27: <async_std::task::builder::SupportTaskLocals<F> as core::future::future::Future>::poll
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-std-1.9.0/src/task/builder.rs:197:13
28: async_executor::Executor::spawn::{{closure}}
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-executor-1.4.1/src/lib.rs:144:13
29: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:80:19
30: <core::pin::Pin<P> as core::future::future::Future>::poll
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:120:9
31: async_task::raw::RawTask<F,T,S>::run
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-task-4.0.3/src/raw.rs:489:20
32: async_task::runnable::Runnable::run
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-task-4.0.3/src/runnable.rs:309:18
33: async_executor::Executor::run::{{closure}}::{{closure}}
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-executor-1.4.1/src/lib.rs:235:21
34: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:80:19
35: <futures_lite::future::Or<F1,F2> as core::future::future::Future>::poll
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-lite-1.11.3/src/future.rs:529:33
36: async_executor::Executor::run::{{closure}}
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-executor-1.4.1/src/lib.rs:242:9
37: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:80:19
38: <futures_lite::future::Or<F1,F2> as core::future::future::Future>::poll
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-lite-1.11.3/src/future.rs:529:33
39: async_io::driver::block_on
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-io-1.4.1/src/driver.rs:142:33
40: async_global_executor::reactor::block_on::{{closure}}
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-global-executor-2.0.2/src/reactor.rs:3:18
41: async_global_executor::reactor::block_on
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-global-executor-2.0.2/src/reactor.rs:12:5
42: async_global_executor::threading::thread_main_loop::{{closure}}::{{closure}}
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-global-executor-2.0.2/src/threading.rs:95:17
43: std::thread::local::LocalKey<T>::try_with
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:376:16
44: std::thread::local::LocalKey<T>::with
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:352:9
45: async_global_executor::threading::thread_main_loop::{{closure}}
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-global-executor-2.0.2/src/threading.rs:89:13
46: std::panicking::try::do_call
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:379:40
47: __rust_try
48: std::panicking::try
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:343:19
49: std::panic::catch_unwind
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:431:14
50: async_global_executor::threading::thread_main_loop
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/async-global-executor-2.0.2/src/threading.rs:88:12
51: core::ops::function::FnOnce::call_once
at /home/jess/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:227:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment