question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

🐛 Bug Report

Can’t login in any of the 4 methods. I have made sure I have the right password and even tried the LEETCODE_SESSION cookie in my browser. Nothing works.

Is this dead? Because if it is, it would be nice if you could let us know!

To Reproduce

Try to log in with each method

Expected behavior

A clear and concise description of what you expected to happen.

Extension Output

[ERROR] You are not login yet?
login: pass: - Signing in leetcode.com
[ERROR] invalid password?
login: pass: - Signing in leetcode.com
[ERROR] invalid password?
login: pass: [ERROR] Login failed. Please make sure the credential is correct.
login: pass: - Signing in leetcode.com
[ERROR] invalid password?
login: pass: [ERROR] Login failed. Please make sure the credential is correct.
login: login: cookie: login: cookie: c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\vsc-leetcode-cli\lib\plugins\leetcode.js:555
    return cb('invalid cookie?');
           ^

TypeError: cb is not a function
    at parseCookie (c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\vsc-leetcode-cli\lib\plugins\leetcode.js:555:12)
    at Plugin.plugin.cookieLogin (c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\vsc-leetcode-cli\lib\plugins\leetcode.js:578:22)
    at c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\vsc-leetcode-cli\lib\commands\user.js:119:12
    at c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\prompt\lib\prompt.js:336:32
    at c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\utile\node_modules\async\lib\async.js:154:25
    at assembler (c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\prompt\lib\prompt.js:333:9)
    at c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\prompt\lib\prompt.js:342:32
    at c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\prompt\lib\prompt.js:625:5
    at Interface.onLine (c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\read\lib\read.js:111:5)
    at Interface.emit (events.js:198:13)
login: cookie: c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\vsc-leetcode-cli\lib\plugins\leetcode.js:555
    return cb('invalid cookie?');
           ^

TypeError: cb is not a function
    at parseCookie (c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\vsc-leetcode-cli\lib\plugins\leetcode.js:555:12)
    at Plugin.plugin.cookieLogin (c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\vsc-leetcode-cli\lib\plugins\leetcode.js:578:22)
    at c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\vsc-leetcode-cli\lib\commands\user.js:119:12
    at c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\prompt\lib\prompt.js:336:32
    at c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\utile\node_modules\async\lib\async.js:154:25
    at assembler (c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\prompt\lib\prompt.js:333:9)
    at c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\prompt\lib\prompt.js:342:32
    at c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\prompt\lib\prompt.js:625:5
    at Interface.onLine (c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\read\lib\read.js:111:5)
    at Interface.emit (events.js:198:13)
login: login: cookie: c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\vsc-leetcode-cli\lib\plugins\leetcode.js:555
    return cb('invalid cookie?');
           ^

TypeError: cb is not a function
    at parseCookie (c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\vsc-leetcode-cli\lib\plugins\leetcode.js:555:12)
    at Plugin.plugin.cookieLogin (c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\vsc-leetcode-cli\lib\plugins\leetcode.js:578:22)
    at c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\vsc-leetcode-cli\lib\commands\user.js:119:12
    at c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\prompt\lib\prompt.js:336:32
    at c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\utile\node_modules\async\lib\async.js:154:25
    at assembler (c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\prompt\lib\prompt.js:333:9)
    at c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\prompt\lib\prompt.js:342:32
    at c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\prompt\lib\prompt.js:625:5
    at Interface.onLine (c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\read\lib\read.js:111:5)
    at Interface.emit (events.js:198:13)
login: cookie: c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\vsc-leetcode-cli\lib\plugins\leetcode.js:555
    return cb('invalid cookie?');
           ^

TypeError: cb is not a function
    at parseCookie (c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\vsc-leetcode-cli\lib\plugins\leetcode.js:555:12)
    at Plugin.plugin.cookieLogin (c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\vsc-leetcode-cli\lib\plugins\leetcode.js:578:22)
    at c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\vsc-leetcode-cli\lib\commands\user.js:119:12
    at c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\prompt\lib\prompt.js:336:32
    at c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\utile\node_modules\async\lib\async.js:154:25
    at assembler (c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\prompt\lib\prompt.js:333:9)
    at c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\prompt\lib\prompt.js:342:32
    at c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\prompt\lib\prompt.js:625:5
    at Interface.onLine (c:\Users\zwhitchcox\.vscode\extensions\shengchen.vscode-leetcode-0.16.0\node_modules\read\lib\read.js:111:5)
    at Interface.emit (events.js:198:13)
login: 

Guidance: Press Ctrl+Shift+U, and toggle the channel to LeetCode.

Your Environment

  • os: Windows 10
  • extension settings: None
  • nodejs version:10.16.3
  • vscode version:1.41.1
  • extension version:0.16.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
yihong0618commented, May 28, 2020

@ChiahungTai @zwhitchcox LinkedIn change their login way, and its a bit complicated now, I will try my best to let it work.

2reactions
yihong0618commented, May 28, 2020

@ChiahungTai @zwhitchcox I have tried all the methods.

  1. LinkedIn seems dead I would try to fix it.
  2. GitHub method and Cookie are fine, if you use GitHub method did you make sure your leetcode accout have linked the third-party GitHub.
  3. you can use this repo for test https://github.com/leetcode-tools/leetcode-cli
Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Accounts: Sign in
Forgot email? CAPTCHA image of text used to distinguish humans from robots.
Read more >
Login
Login · Open the notification on your phone · Enter the challenge code below into the Handy Key Mobile app to generate a...
Read more >
Login.gov: The public's one account for government.
Use one account and password for secure, private access to participating government agencies.
Read more >
Log into Facebook
Log into Facebook to start sharing and connecting with your friends, family, and people you know.
Read more >
Microsoft 365: Login
Collaborate for free with online versions of Microsoft Word, PowerPoint, Excel, and OneNote. Save documents, workbooks, and presentations online, ...
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