skygragon / leetcode-cli

A cli tool to enjoy leetcode!
MIT License
3.65k stars 458 forks source link

Why the latest question cannot be downloaded? #171

Closed kgfly closed 5 years ago

kgfly commented 5 years ago

Problem Summary

Not sure if it's a bug or by design. Anyway,

The download latest question cannot be downloaded

How to reproduce

leetcode show 1100 -gx -l python3 prompted: [ERROR] Problem not found!

Environment

kgfly commented 5 years ago

On the hand,

leetcode show 900 -gx -l python3

works normally.

lebeier commented 5 years ago

The problem seems to be locked, do you have premium account?

kgfly commented 5 years ago

I do have premium account. I just reinstalled with

rm -fr ~/.nvm curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash source ~/.bashrc nvm install --lts npm install -g leetcode-cli

Current version is 2.6.1

I tried an non premium question eg, 1042

"leetcode show 1042 -gx -l python3", which prompts the same error [ERROR] Problem not found!

May you please take a look what's wrong here?

kgfly commented 5 years ago

I noticed that all questions after 102X cannot be downloded.

ketankr9 commented 5 years ago

Try to logout then re-login and see if the new questions are downloaded leetcode user -L followed by leetcode user -l

This is how I update the question list. Right now it is showing up to 1143.

kgfly commented 5 years ago

working now. will keep an eye on it.

Thanks