clearloop / leetcode-cli

May the code be with you 👻
MIT License
317 stars 53 forks source link

Expected line error #149

Open MostlyKIGuess opened 7 months ago

MostlyKIGuess commented 7 months ago

Error:

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

[cookies] csrf = 'aslkalskfjlasksjflaskjflaskjflaskjflasjlfkjas' session = 'laksflkasjflkasjfl.alsflaskfjlaskflashflashflasjhflasjfhlajfhlasjfhlasjfhlasfhlasf.laskjflasjflasjf'

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

elgar328 commented 7 months ago

I also have the same problem.

cjon256 commented 7 months ago

This problem also happens with other tools like leetscrape. So my guess is that leetcode made changes to their api. e.g. It gives a very similar json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) error. Given that is Python and gives a similar error, my best guess is it is a change on their end.

TJSolecki commented 7 months ago

Same here

MostlyKIGuess commented 7 months ago

This problem also happens with other tools like leetscrape. So my guess is that leetcode made changes to their api. e.g. It gives a very similar json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) error. Given that is Python and gives a similar error, my best guess is it is a change on their end.

Yeah I think so too..

rnarenpujari commented 6 months ago

now i'm going to get busted using the web ui at work smh

edit: when i tried a couple days ago, pick wasn't working with the above error I believe. Now pick goes through but test & exec don't.

❯ lc test 100
[INFO  leetcode_cli::plugins::leetcode] Sending code to judge...
JSON error: expected value at line 1 column 1, please double check your session and csrf config. JSON error: expected value at line 1 column 1, please double check your session and csrf config.