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

I can't login in Leetcode-cn.com

Open shamexln opened this issue 3 years ago β€’ 8 comments

πŸ› Bug Report

I can't login in Leetcode-cn.com

To Reproduce

Using Sign-in menu, enter userid and password

Expected behavior

can login leetcode-cn.com successfully.

Extension Output

login: (node:24316) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created) pass: - Signing in leetcode-cn.com

  • Retrieving user favorites undefined:1
εŠ›ζ‰£

^

SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse () at Request._callback (c:\Users\shamexln.vscode\extensions\leetcode.vscode-leetcode-0.17.0\node_modules\vsc-leetcode-cli\lib\plugins\leetcode.js:401:28) at Request.self.callback (c:\Users\shamexln.vscode\extensions\leetcode.vscode-leetcode-0.17.0\node_modules\request\request.js:185:22) at Request.emit (events.js:315:20) at Request. (c:\Users\shamexln.vscode\extensions\leetcode.vscode-leetcode-0.17.0\node_modules\request\request.js:1161:10) at Request.emit (events.js:315:20) at IncomingMessage. (c:\Users\shamexln.vscode\extensions\leetcode.vscode-leetcode-0.17.0\node_modules\request\request.js:1083:12) at Object.onceWrapper (events.js:421:28) at IncomingMessage.emit (events.js:327:22) at endReadableNT (_stream_readable.js:1224:12)

Your Environment

  • os:x64
  • extension settings:default
  • nodejs version:v.14.4.0
  • vscode version:1.50.1
  • extension version:v0.17.0

shamexln avatar Nov 08 '20 10:11 shamexln

same issue with me, anyone resolved?

mengbinhao avatar Nov 23 '20 06:11 mengbinhao

same issue with me

[ERROR] invalid cookie? /Users/lester/.vscode/extensions/leetcode.vscode-leetcode-0.17.0/node_modules/vsc-leetcode-cli/lib/plugins/leetcode.js:569 user.sessionId = cookieData.sessionId; ^

TypeError: Cannot read property 'sessionId' of undefined

LesterWeng avatar Dec 23 '20 06:12 LesterWeng

use basic way to login

yihong0618 avatar Dec 23 '20 06:12 yihong0618

use basic way to login

I already use basic way to login. But it doesn't work

shamexln avatar Jan 24 '21 13:01 shamexln

I have this exact same problem. Here is the output.

v15.0.1
 Active  Name               Version         Desc
----------------------------------------------------------------------------------------------------
   √     solution.discuss   2019.02.03      Plugin to fetch most voted solution in discussions.
   √     company            2017.12.18      Plugin to query by company for free user.
   √     cache              default         Plugin to provide local cache.
   √     retry              default         Plugin to retry last failed request if autologin.enable is on.
   Γ—     leetcode.cn        2018.11.25      Plugin to talk with leetcode-cn APIs.
   √     leetcode           default         Plugin to talk with leetcode APIs.
(node:8584) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
 Active  Name               Version         Desc
----------------------------------------------------------------------------------------------------
   √     solution.discuss   2019.02.03      Plugin to fetch most voted solution in discussions.
   √     company            2017.12.18      Plugin to query by company for free user.
   √     cache              default         Plugin to provide local cache.
   √     retry              default         Plugin to retry last failed request if autologin.enable is on.
   Γ—     leetcode.cn        2018.11.25      Plugin to talk with leetcode-cn APIs.
   √     leetcode           default         Plugin to talk with leetcode APIs.
(node:12532) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
 Active  Name               Version         Desc
----------------------------------------------------------------------------------------------------
   √     solution.discuss   2019.02.03      Plugin to fetch most voted solution in discussions.
   √     company            2017.12.18      Plugin to query by company for free user.
   √     cache              default         Plugin to provide local cache.
   √     retry              default         Plugin to retry last failed request if autologin.enable is on.
   √     leetcode.cn        2018.11.25      Plugin to talk with leetcode-cn APIs.
   √     leetcode           default         Plugin to talk with leetcode APIs.
(node:3288) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
 Active  Name               Version         Desc
----------------------------------------------------------------------------------------------------
   √     solution.discuss   2019.02.03      Plugin to fetch most voted solution in discussions.
   √     company            2017.12.18      Plugin to query by company for free user.
   √     cache              default         Plugin to provide local cache.
   √     retry              default         Plugin to retry last failed request if autologin.enable is on.
   Γ—     leetcode.cn        2018.11.25      Plugin to talk with leetcode-cn APIs.
   √     leetcode           default         Plugin to talk with leetcode APIs.
(node:12312) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
[ERROR] You are not login yet?
(node:15352) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
login: (node:16976) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
pass: - Signing in leetcode.com
[ERROR] invalid password?

austenstone avatar Feb 06 '21 13:02 austenstone

1.View:show LeetCode 2.left side.press the International icon,then change to Chinese 3. login with name and password 4. Success.

zhangyanrui avatar Mar 12 '21 09:03 zhangyanrui

1.View:show LeetCode 2.left side.press the International icon,then change to Chinese 3. login with name and password 4. Success.

3ks,only need to change the region from international icon to china!

cvenwu avatar Jul 06 '22 06:07 cvenwu

1.View:show LeetCode 2.left side.press the International icon,then change to Chinese 3. login with name and password 4. Success.

η‰›δΊ†οΌŒη«Ÿη„ΆθΏ˜θƒ½θ―†εˆ«ε‡Ίζˆ‘ζ˜―δΈ­ε›½εŒΊηš„θ΄¦ε·

chky avatar Jul 15 '23 09:07 chky