qwertynerd97 / ao3-reader

Ao3 Work Reader
Other
0 stars 0 forks source link

Token Crash Loop #1

Open qwertynerd97 opened 2 days ago

qwertynerd97 commented 2 days ago

If the AO3 reader crashes for whatever reason, the login cookie in the Settings.toml file is replaced by a blank string. This results in the AO3 reader crashing on every subsequent startup, with the log

thread 'main' panicked at crates/core/src/http.rs:97:44:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at crates/core/src/http.rs:97:44:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

This appears to be caused by crates/core/src/http.rs:line 50, where the login cookie is force unwrapped

qwertynerd97 commented 2 days ago

This can be fixed by the end user by resetting the Settings.toml file