Skip to content

Login #556

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

Closed
zwhitchcox opened this issue May 22, 2020 · 6 comments
Closed

Login #556

zwhitchcox opened this issue May 22, 2020 · 6 comments

Comments

@zwhitchcox
Copy link

🐛 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
@zwhitchcox
Copy link
Author

Ok, I hadn't tried the LinkedIn method, this is the output when I try that

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: pass: [ERROR] Get LinkedIn token failed

I have confirmed all my passwords I've been entering are correct as well.

@ChiahungTai
Copy link

Same problem. :(

@yihong0618
Copy link
Contributor

yihong0618 commented May 26, 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

@yihong0618
Copy link
Contributor

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

@yihong0618
Copy link
Contributor

yihong0618 commented May 28, 2020

fix: LinkedIn login and github login see leetcode-tools/leetcode-cli#43

@jdneo
Copy link
Member

jdneo commented Jul 1, 2020

SHould be fixed in 0.17.0

@jdneo jdneo closed this as completed Jul 1, 2020
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

4 participants