I have a Rust web on a remote server which I run as:
RUST_BACKTRACE=1 nohup /home/my_user/app123 &
When it goes down and I check nohup.log, I see only this:
04:52:22 [WARN] unexpected chunk when body cannot write
04:52:23 [WARN] unexpected chunk when body cannot write
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ErrorImpl { code: EofWhileParsingValue, line: 1, column: 0 }', /checkout/src/libcore/result.rs:906:4
stack backtrace:
0: <std::time::Instant as core::fmt::Debug>::fmt
1: <std::time::Instant as core::fmt::Debug>::fmt
2: <std::time::Instant as core::fmt::Debug>::fmt
3: <std::time::Instant as core::fmt::Debug>::fmt
4: <std::time::Instant as core::fmt::Debug>::fmt
5: <std::time::Instant as core::fmt::Debug>::fmt
6: <std::time::Instant as core::fmt::Debug>::fmt
7: <std::time::Instant as core::fmt::Debug>::fmt
8: <core::cell::BorrowMutError as core::fmt::Debug>::fmt
9:
10:
11:
12:
13: <hyper::version::HttpVersion as core::fmt::Debug>::fmt
14:
15: <std::time::duration::Duration as core::fmt::Debug>::fmt
16: <std::time::Instant as core::fmt::Debug>::fmt
17:
18: <unknown>
How can I trace the error? It's something related to Serde JSON, but what exactly? There are many places in my app where it could occur.