Skip to content
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

LeetCode-CN premium account cannot access locked question. #409

Open
liuyaf opened this issue Sep 6, 2019 · 22 comments
Open

LeetCode-CN premium account cannot access locked question. #409

liuyaf opened this issue Sep 6, 2019 · 22 comments

Comments

@liuyaf
Copy link

liuyaf commented Sep 6, 2019

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
@jdneo
Copy link
Member

jdneo commented Sep 6, 2019

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

@liuyaf
Copy link
Author

liuyaf commented Sep 6, 2019

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

Yes, it is.
image

@jdneo
Copy link
Member

jdneo commented Sep 6, 2019

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

@liuyaf
Copy link
Author

liuyaf commented Sep 6, 2019

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

@jdneo
Copy link
Member

jdneo commented Sep 6, 2019

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?

@liuyaf
Copy link
Author

liuyaf commented Sep 6, 2019

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?

@jdneo
Copy link
Member

jdneo commented Sep 10, 2019

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

@twchn
Copy link

twchn commented Sep 24, 2019

+1
And the console shows:
image

@jdneo
Copy link
Member

jdneo commented Sep 24, 2019

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

@Gwzlchn
Copy link

Gwzlchn commented Mar 23, 2020

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

@soleil0-0
Copy link

soleil0-0 commented May 4, 2020

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

Locked questions will show up.

YC5ql8.png

@Bovey0809
Copy link

Same issue. Can't access the locked problems.

@Bovey0809
Copy link

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
Copy link

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

@LinDaFeiiiiii
Copy link

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

can't find this file (┬_┬)

@Bovey0809
Copy link

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.

@huangjun604
Copy link

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.

@vidyasagarr7
Copy link

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.

@kerryChen95
Copy link

kerryChen95 commented Feb 18, 2021

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.

@nuynait
Copy link

nuynait commented Jan 26, 2022

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.

@mefengl
Copy link

mefengl commented Aug 21, 2022

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

@csbo98
Copy link

csbo98 commented Sep 4, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests