[Help]can't log in leetcode-cn

See original GitHub issue

This problem occurred when I logged in with email

[ERROR] Problem not found!
login: pass: - Signing in leetcode.com
- Retrieving user favorites
[WARN] Favorite not found?
- Retrieving user profile
/Users/zhuanghaixin/.vscode/extensions/shengchen.vscode-leetcode-0.15.4/node_modules/vsc-leetcode-cli/lib/log.js:55
      let s = args.map(x => x.toString()).join(' ');
                              ^

TypeError: Cannot read property 'toString' of undefined
    at args.map.x (/Users/zhuanghaixin/.vscode/extensions/shengchen.vscode-leetcode-0.15.4/node_modules/vsc-leetcode-cli/lib/log.js:55:31)
    at Array.map (<anonymous>)
    at Object.log.(anonymous function) [as info] (/Users/zhuanghaixin/.vscode/extensions/shengchen.vscode-leetcode-0.15.4/node_modules/vsc-leetcode-cli/lib/log.js:55:20)
    at /Users/zhuanghaixin/.vscode/extensions/shengchen.vscode-leetcode-0.15.4/node_modules/vsc-leetcode-cli/lib/commands/user.js:52:13
    at /Users/zhuanghaixin/.vscode/extensions/shengchen.vscode-leetcode-0.15.4/node_modules/vsc-leetcode-cli/lib/plugins/cache.js:77:12
    at /Users/zhuanghaixin/.vscode/extensions/shengchen.vscode-leetcode-0.15.4/node_modules/vsc-leetcode-cli/lib/plugins/leetcode.js:520:14
    at Request._callback (/Users/zhuanghaixin/.vscode/extensions/shengchen.vscode-leetcode-0.15.4/node_modules/vsc-leetcode-cli/lib/plugins/leetcode.js:419:19)
    at Request.self.callback (/Users/zhuanghaixin/.vscode/extensions/shengchen.vscode-leetcode-0.15.4/node_modules/request/request.js:185:22)
    at Request.emit (events.js:182:13)
    at Request.<anonymous> (/Users/zhuanghaixin/.vscode/extensions/shengchen.vscode-leetcode-0.15.4/node_modules/request/request.js:1161:10)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
zhuanghaixincommented, Sep 27, 2019

你好,我尝试用rm -rf .lc清除这个文件,还是无法登录,还是出现上面那个报错。然后在leetcode-cn重新建了一个号,可以在vscode上登录。在leetcode.com建了一个号也可以登录。然后我又在其他人的电脑登录,还是不行。但是我在官网上是可以用这个账号登录的 不知道问题出在哪里了。 还有个事,就是我之前在leetcode-cn办过会员,然后会员前几天到期了,不知道和这个有没有关系。

Your Environment

os:macOS 10.14 extension settings: nodejs version:v10.10.0 vscode version:1.38.1 extension version:0.15.4

0reactions
hfhg151commented, Mar 12, 2021

刚开始用的昵称密码登录,也是报这个错,换了注册的手机号和密码,就登上了。

Read more comments on GitHub >

github_iconTop Results From Across the Web

I can't login in Leetcode-cn.com · Issue #645 - GitHub
Bug Report. I can't login in Leetcode-cn.com. To Reproduce. Using Sign-in menu, enter userid and password. Expected behavior.
Read more >
Please stop redirecting to leetcode-cn automatically
Recently when I open leetcode.com in the browser in China, the website automatically redirect me to leetcode.com. This can be solved by opening...
Read more >
vscode-leetcode/Lobby - Gitter
hi, i can not sign in leetcode by vscode today, and i havn't find the solution. zyhustgithub. @zyhustgithub. login: pass: - Signing in...
Read more >
Leetcode Login - LoginsLink
Bug Report I can't log into my leetcode.com account via vscode plugin, but I ... Note: If you are using leetcode-cn.com , you...
Read more >
Release Notes | leetcode-cli - GitHub Pages
login info; problems list; problem cache ... fixes 400 error; support translated content for leetcode-cn ... fix issue that can't delete cache by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found