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

Use of Firefox cookies results in error decoding response body #136

Open
21eleven opened this issue Oct 28, 2023 · 3 comments
Open

Use of Firefox cookies results in error decoding response body #136

21eleven opened this issue Oct 28, 2023 · 3 comments

Comments

@21eleven
Copy link

 ~
 ▷ 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'
@21eleven
Copy link
Author

21eleven commented Nov 4, 2023

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

@21eleven 21eleven closed this as completed Nov 4, 2023
@Bonen0209
Copy link

Bonen0209 commented Mar 9, 2024

@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

@21eleven
Copy link
Author

21eleven commented Mar 9, 2024

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

@21eleven 21eleven reopened this Mar 9, 2024
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

2 participants