LeetCode-CN premium account cannot access locked question.
Failed to access leetcode-cn premium problem with premium account.
LeetCode-CN 会员账户无法访问会员问题


Environment
- os: Mac OS 10.14.6
- nodejs version: 10.15.3
- vscode version:1.38.0
Is the activated endpoint you are using is leetcode-cn? The default is leetcode
Is the activated endpoint you are using is
leetcode-cn? The default isleetcode
Yes, it is.

Hmm.. I haven't met this issue before. Is the unlocked problem accessible?
Hmm.. I haven't met this issue before. Is the unlocked problem accessible?
Unlocked problems in both endpoints are fine. But when I switched to endpoint leetcode with a premium global account, I can now access to locked problem just fine...
Hmm, not sure what's happening there. I haven't a premium account so I can't test it locally. 😂
Will the global endpoint work for you?
Uh.. that was my friend's account so I would prefer to access them in leetcode-cn endpoint. Do you think it will be helpful if I give you the account to test that lol?
@liuyaf If you don't mind, that would be great. 😄
+1
And the console shows:

Hey guys, sorry I just came back from vacation. Will start looking at this issue recently.
I cannot access locked question,either.
The same situation occurs to me.
I am using LeetCode-CN endpoint after buying the leetcode-cn premium account.
ENIV
- OS: WIndows 10 2004
- vscode vision: 1.42.1
- leetcode-extension vision: 0.16.1
Just add "paid": ture to ~/.LC/user.json and ~/.LC/leetcode.cn/user.json
Locked questions will show up.

Same issue. Can't access the locked problems.
Just add
"paid": tureto ~/.LC/user.json and ~/.LC/leetcode.cn/user.jsonLocked questions will show up.
true. spell check please.
Solution: Go to the ~/.lc/leetcode.cn/user.json add "paid":true.
Solution: Go to the ~/.lc/leetcode.cn/user.json add
"paid":true.
can't find this file (┬_┬)
Solution: Go to the ~/.lc/leetcode.cn/user.json add
"paid":true.can't find this file (┬_┬)
You can make a dir and use.json and try, but the LC plugin seems break down these days. I can't log in.
Solution: Go to the ~/.lc/leetcode.cn/user.json add
"paid":true.can't find this file (┬_┬)
The .lc folder created by the dependency vsc-leetcode-cli. vscode-leetcode uses it for login feature, and your login information will be stored here. So you must have this file.
Hi, my account is leetcode as endpoint, and I logged in using cookie as specified here - https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/478#issuecomment-564757098.
~/.lc/leetcode/user.json file has "paid": true, but I don't see all the locked questions. Can someone please help. Thank you.
Solution: Go to the ~/.lc/leetcode.cn/user.json add
"paid":true.
Hope for auto setting "paid": true for premium account.
Otherwise we need to set it manually everytime sign in.
Hi, my account is
leetcodeas endpoint, and I logged in using cookie as specified here -https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/478#issuecomment-564757098.~/.lc/leetcode/user.jsonfile has "paid": true, but I don't see all the locked questions. Can someone please help. Thank you.
I'm having the exact same issue.
Just add
"paid": tureto ~/.LC/user.json and ~/.LC/leetcode.cn/user.jsonLocked questions will show up.
if still can't open, emove the cache folder and stats.json in the ~/.LC/leetcode.cn/ directory
Hi, my account is
leetcodeas endpoint, and I logged in using cookie as specified here -https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/478#issuecomment-564757098.~/.lc/leetcode/user.jsonfile has "paid": true, but I don't see all the locked questions. Can someone please help. Thank you.I'm having the exact same issue.
you should set up the "Leetcode: Show Locked" item in the leetcode settings as follows:
