-
Notifications
You must be signed in to change notification settings - Fork 664
leetcode.cn login error #798
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
Comments
是域名的问题,我基于官方插件修改的版本修复了这个问题,详情看这里:labuladong 的 vscode 刷题插件 |
感谢分享,经过测试,现有的问题是leetcode.cn在submit和test时有误,提示 |
试了下,我修改发布的版本中不会出现这个 bug,你试试看? |
同样的问题,如果不更换插件,如何在原有基础上解决 |
@Spencerhyuk, you must fork one and publish it to use it. |
@Spencerhyuk Please check this link. |
🐛 Bug Report
pass: - Signing in leetcode-cn.com
[ERROR] invalid password?
c:\Users\HP.vscode\extensions\leetcode.vscode-leetcode-0.18.0\node_modules\vsc-leetcode-cli\lib\plugins\leetcode.js:577
const authenticityToken = body.match(/name="authenticity_token" value="(.*?)"/);
^
TypeError: Cannot read properties of undefined (reading 'match')
at Request._callback (c:\Users\HP.vscode\extensions\leetcode.vscode-leetcode-0.18.0\node_modules\vsc-leetcode-cli\lib\plugins\leetcode.js:577:36)
at self.callback (c:\Users\HP.vscode\extensions\leetcode.vscode-leetcode-0.18.0\node_modules\request\request.js:185:22)
at Request.emit (node:events:526:28)
at Request.onRequestError (c:\Users\HP.vscode\extensions\leetcode.vscode-leetcode-0.18.0\node_modules\request\request.js:881:8)
at ClientRequest.emit (node:events:526:28)
at TLSSocket.socketErrorListener (node:_http_client:442:9)
at TLSSocket.emit (node:events:526:28)
at emitErrorNT (node:internal/streams/destroy:157:8)
at emitErrorCloseNT (node:internal/streams/destroy:122:3)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
success!
invalid cookieTo Reproduce
Expected behavior
login !
Extension Output
Guidance: Press
Ctrl+Shift+U
, and toggle the channel toLeetCode
.pass: - Signing in leetcode-cn.com
[ERROR] invalid password?
login: (node:28504) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use
node --trace-warnings ...
to show where the warning was created)pass: c:\Users\HP.vscode\extensions\leetcode.vscode-leetcode-0.18.0\node_modules\vsc-leetcode-cli\lib\plugins\leetcode.js:577
const authenticityToken = body.match(/name="authenticity_token" value="(.*?)"/);
^
TypeError: Cannot read properties of undefined (reading 'match')
at Request._callback (c:\Users\HP.vscode\extensions\leetcode.vscode-leetcode-0.18.0\node_modules\vsc-leetcode-cli\lib\plugins\leetcode.js:577:36)
at self.callback (c:\Users\HP.vscode\extensions\leetcode.vscode-leetcode-0.18.0\node_modules\request\request.js:185:22)
at Request.emit (node:events:526:28)
at Request.onRequestError (c:\Users\HP.vscode\extensions\leetcode.vscode-leetcode-0.18.0\node_modules\request\request.js:881:8)
at ClientRequest.emit (node:events:526:28)
at TLSSocket.socketErrorListener (node:_http_client:442:9)
at TLSSocket.emit (node:events:526:28)
at emitErrorNT (node:internal/streams/destroy:157:8)
at emitErrorCloseNT (node:internal/streams/destroy:122:3)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
Your Environment
The text was updated successfully, but these errors were encountered: