vscode-leetcode icon indicating copy to clipboard operation
vscode-leetcode copied to clipboard

LeetCode-CN premium account cannot access locked question.

Open liuyaf opened this issue 6 years ago • 22 comments

Failed to access leetcode-cn premium problem with premium account.

LeetCode-CN 会员账户无法访问会员问题 image

image

Environment

  • os: Mac OS 10.14.6
  • nodejs version: 10.15.3
  • vscode version:1.38.0

liuyaf avatar Sep 06 '19 02:09 liuyaf

Is the activated endpoint you are using is leetcode-cn? The default is leetcode

jdneo avatar Sep 06 '19 02:09 jdneo

Is the activated endpoint you are using is leetcode-cn? The default is leetcode

Yes, it is. image

liuyaf avatar Sep 06 '19 02:09 liuyaf

Hmm.. I haven't met this issue before. Is the unlocked problem accessible?

jdneo avatar Sep 06 '19 02:09 jdneo

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...

liuyaf avatar Sep 06 '19 02:09 liuyaf

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?

jdneo avatar Sep 06 '19 03:09 jdneo

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 avatar Sep 06 '19 03:09 liuyaf

@liuyaf If you don't mind, that would be great. 😄

jdneo avatar Sep 10 '19 01:09 jdneo

+1 And the console shows: image

twchn avatar Sep 24 '19 07:09 twchn

Hey guys, sorry I just came back from vacation. Will start looking at this issue recently.

jdneo avatar Sep 24 '19 10:09 jdneo

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

Gwzlchn avatar Mar 23 '20 06:03 Gwzlchn

Just add "paid": ture to ~/.LC/user.json and ~/.LC/leetcode.cn/user.json

Locked questions will show up.

YC5ql8.png

soleil0-0 avatar May 04 '20 12:05 soleil0-0

Same issue. Can't access the locked problems.

Bovey0809 avatar May 09 '20 05:05 Bovey0809

Just add "paid": ture to ~/.LC/user.json and ~/.LC/leetcode.cn/user.json

Locked questions will show up.

YC5ql8.png

true. spell check please.

Bovey0809 avatar May 09 '20 05:05 Bovey0809

Solution: Go to the ~/.lc/leetcode.cn/user.json add "paid":true.

Bovey0809 avatar May 09 '20 05:05 Bovey0809

Solution: Go to the ~/.lc/leetcode.cn/user.json add "paid":true.

can't find this file (┬_┬)

LinDaFeiiiiii avatar Jun 24 '20 09:06 LinDaFeiiiiii

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.

Bovey0809 avatar Jun 25 '20 04:06 Bovey0809

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.

huangjun604 avatar Aug 22 '20 16:08 huangjun604

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.

vidyasagarr7 avatar Aug 29 '20 19:08 vidyasagarr7

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.

kerryChen95 avatar Feb 18 '21 11:02 kerryChen95

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.

I'm having the exact same issue.

nuynait avatar Jan 26 '22 01:01 nuynait

Just add "paid": ture to ~/.LC/user.json and ~/.LC/leetcode.cn/user.json

Locked questions will show up.

YC5ql8.png

if still can't open, emove the cache folder and stats.json in the ~/.LC/leetcode.cn/ directory

mefengl avatar Aug 21 '22 07:08 mefengl

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.

I'm having the exact same issue.

you should set up the "Leetcode: Show Locked" item in the leetcode settings as follows: Screen Shot 2022-09-04 at 16 02 25

csbo98 avatar Sep 04 '22 08:09 csbo98