clearloop/leetcode-cli

Use of Firefox cookies results in error decoding response body

Opened this issue · 3 comments

 ~
 ▷ RUST_BACKTRACE=1 leetcode data -d -u
ok!
[INFO  leetcode_cli::cache] Fetching leetcode problems...
error: error decoding response body: expected value at line 1 column 1, please try again

I installed the cli via nix: nix profile install nixpkgs#leetcode-cli

My ~/.leetcode/leetcode.toml looks like:

[code]
editor = 'vim'
lang = 'rust'

[cookies]
csrf = 'xyz...randomtext...abc'
session = 'xyz...longerrandomtext...abc'

[storage]
cache = 'Problems'
code = 'code'
root = '~/.leetcode'
scripts = 'scripts'

tried again w firefox cookies again today and it worked. Not sure what I did wrong previously.

@21eleven, I encountered the same issue with cookies in both Chrome and Safari browsers.

RUST_BACKTRACE=1 leetcode data -d -u
ok!
[INFO  leetcode_cli::cache] Fetching leetcode problems...
error: error decoding response body: expected value at line 1 column 1, please try again

I tried to login this morning and I experienced the same issue as you @Bonen0209