after chrome update the cookies cannot be seen
in brave and in chromium I am having the same problem. does anyone knows how to find them now. also update the description
Press F12 and open the network tab, the cookies is not existing? Can you offer your chrome version ?
I have the same issue on MacOS, here's the error output when attempting 'leetcode pick 1':
thread 'main' panicked at 'Error connecting to "/Users/decap/Library/Application Support/Google/Chrome/Default/Cookies"', /Users/decap/.cargo/registry/src/github.com-1ecc6299db9ec823/leetcode-cli-0.3.11/src/cache/mod.rs:17:56
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
Did the location of the cookies possibly change? There is no 'Default' directory.
Found the issue, if you have multiple chrome profiles it stores the cookies in directories called 'Profile 1', 'Profile 2', etc. and not 'Default'
let p = match std::env::consts::OS {
// "macos" => home.join("Library/Application Support/Google/Chrome/Default/Cookies"),
"macos" => home.join("Library/Application Support/Google/Chrome/Profile 1/Cookies"),
"linux" => home.join(".config/google-chrome/Default/Cookies"),
_ => panic!("Opps...only works on OSX or Linux now..."),
};
Fixed it manually by changing the directory, might make sense to check cookies for Default, then 'Profile 1', 'Profile 2', etc. the first time the CLI is run.
Actually, I first read it about Chrome cookies, after refactoring the config, we can think deeply about this question. Or welcome your PR. Thanks.