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

[登陆问题] TypeError: Cannot read property 'id_hash' of undefined

Open cc189 opened this issue 8 years ago • 2 comments

login: login: pass: [ERROR] invalid password? [0]
login: pass: /Users/xxx/.vscode/extensions/shengchen.vscode-leetcode-0.8.0/node_modules/leetcode-cli/lib/plugins/leetcode.js:466
    user.hash = favorite.id_hash;
                         ^

TypeError: Cannot read property 'id_hash' of undefined
    at /Users/xxx/.vscode/extensions/shengchen.vscode-leetcode-0.8.0/node_modules/leetcode-cli/lib/plugins/leetcode.js:466:26
    at Request._callback (/Users/xxx/.vscode/extensions/shengchen.vscode-leetcode-0.8.0/node_modules/leetcode-cli/lib/plugins/leetcode.js:381:12)
    at Request.self.callback (/Users/xxx/.vscode/extensions/shengchen.vscode-leetcode-0.8.0/node_modules/request/request.js:186:22)
    at Request.emit (events.js:182:13)
    at Request.<anonymous> (/Users/xxx/.vscode/extensions/shengchen.vscode-leetcode-0.8.0/node_modules/request/request.js:1163:10)
    at Request.emit (events.js:182:13)
    at IncomingMessage.<anonymous> (/Users/xxx/.vscode/extensions/shengchen.vscode-leetcode-0.8.0/node_modules/request/request.js:1085:12)
    at Object.onceWrapper (events.js:273:13)
    at IncomingMessage.emit (events.js:187:15)
    at endReadableNT (_stream_readable.js:1085:12)

cc189 avatar Aug 31 '18 08:08 cc189

Hi @cc189,

Thank you for the feedback. Unfortunately, I could not repro this problem on my side. If you don't mind, could you please try to login to leetcode directly through the leetcode-cli?

You may find more details here: https://skygragon.github.io/leetcode-cli/install

jdneo avatar Sep 01 '18 06:09 jdneo

Closing it since it's inactive for a long time.

jdneo avatar Feb 04 '19 06:02 jdneo