-
Notifications
You must be signed in to change notification settings - Fork 455
Failed to load locked problem #91
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
Comments
@yuzhoul1991 Have you tried manually re-login? |
You mean leetcode user -l? If so yes I tried that
Best,
Yuzhou
… On Mar 1, 2018, at 7:18 PM, skygragon ***@***.***> wrote:
@yuzhoul1991 Have you tried manually re-login?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
There might be a bug if we have old problems.json cached, please try to clear the cache? I don't have premium account thus can't test it all.
|
Same problem here. Even after clear the cache by |
Sorry I can't debug this but I could give a hint that you might debug by yourself. "failed to load locked problem" occurs in lib/plugins/leetcode.js:123, which implies "user.paid" is unexpectedly false.
user.paid is assigned in lib/plugins/leetcode.js:95, which is extracted from the returned json of "https://leetcode.com/api/problems/$category/". For paid user, this "is_paid" field in json should be true (expected but not tested recently).
I guess the latest json response has been changed recently that doesn't contain "is_paid" field anymore, which means we need seek other ways to detect paid user. |
Maybe we can try to fetch the subscription state from leetcode.com/subscription/. I currently delete lib/plugins/leetcode.js:123 as a temporary fix for myself. |
Facing the same issue. But still cannot accessing the locked problem after deleting lib/plugins/leetcode.js:123, or manually setting user.paid to true. |
I am running into the same issue as well. Tried upgrading to the latest version and deleting the cache. Nothing worked yet. |
Facing same error here. |
Same |
Facing the same issue. @skygragon Would you mind cutting a new release to include the master fix fc7a09b? |
any update? |
any updates? Thx |
Yes it does. Please do. |
2.5.3 released, enjoy it |
@skygragon Thanks. Btw, I installed it using 'npm install -g skygragon/leetcode-cli', i.e., the DEV version from GitHub which is now under 2.5.2. How to update it to 2.5.3? I just tried 'npm update -g skygragon/leetcode-cli' but nothing happened. |
@yanzhang0219 the last resort is to uninstall fist then install again :) |
@skygragon Yep, that's what I did. Thanks. |
Problem Summary
It is no longer able to show and download the locked questions all of a sudden. I am still premium member.
How to reproduce
Environment
leetcode version returns 2.5.1
redhat, not sure what version, it was working just a few days ago i think
v9.4.0
5.6.0
The text was updated successfully, but these errors were encountered: