Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid header on 0.5.0 #30

Closed
joshlartz opened this issue Dec 8, 2022 · 2 comments
Closed

Invalid header on 0.5.0 #30

joshlartz opened this issue Dec 8, 2022 · 2 comments

Comments

@joshlartz
Copy link

cargo run now throws this error about headers each time. The header you added looks valid though, so I'm not sure what is wrong.

thread 'main' panicked at 'invalid header value: Error(Http(http::Error(InvalidHeaderValue)))', /Users/jlartz/.asdf/installs/rust/1.65.0/registry/src/github.com-1ecc6299db9ec823/attohttpc-0.24.0/src/request/builder.rs:246:40
stack backtrace:
   0: rust_begin_unwind
             at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/std/src/panicking.rs:584:5
   1: core::panicking::panic_fmt
             at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/core/src/panicking.rs:142:14
   2: core::result::unwrap_failed
             at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/core/src/result.rs:1785:5
   3: core::result::Result<T,E>::expect
             at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/core/src/result.rs:1064:23
   4: attohttpc::request::builder::RequestBuilder<B>::header
             at /Users/jlartz/.asdf/installs/rust/1.65.0/registry/src/github.com-1ecc6299db9ec823/attohttpc-0.24.0/src/request/builder.rs:246:9
   5: aoc_main::input::get_input::{{closure}}
             at /Users/jlartz/.asdf/installs/rust/1.65.0/registry/src/github.com-1ecc6299db9ec823/aoc-main-0.5.0/src/input.rs:36:20
   6: aoc_main::input::get_from_path_or_else
             at /Users/jlartz/.asdf/installs/rust/1.65.0/registry/src/github.com-1ecc6299db9ec823/aoc-main-0.5.0/src/input.rs:79:19
   7: aoc_main::input::get_input
             at /Users/jlartz/.asdf/installs/rust/1.65.0/registry/src/github.com-1ecc6299db9ec823/aoc-main-0.5.0/src/input.rs:31:22
   8: advent2022::main
             at /Users/jlartz/.asdf/installs/rust/1.65.0/registry/src/github.com-1ecc6299db9ec823/aoc-main-0.5.0/src/lib.rs:117:21
   9: core::ops::function::FnOnce::call_once
             at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/core/src/ops/function.rs:248:5
@joshlartz
Copy link
Author

Works when going back to 0.4.1, but fails on 0.5.0

@joshlartz
Copy link
Author

Looks like a new line snuck into my token.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant