ccagml / leetcode-extension

Solved LeetCode problem in VS Code added some new features
https://marketplace.visualstudio.com/items?itemName=ccagml.vscode-leetcode-problem-rating
MIT License
267 stars 27 forks source link

登陆问题 #192

Open xtheing opened 1 year ago

xtheing commented 1 year ago

cn 是用手机号注册登陆啊,或者其他网站授权登陆,com也登陆不了。

AuroraMaster commented 1 year ago

同。第三方github也无法登录 UseCode --trace-warnings ...` to show where the warning was created) {"code":-5,"msg":"invalid cookie?"} c:\Users\Administrator.vscode\extensions\ccagml.vscode-leetcode-problem-rating-2.17.4\out\src\rpc\actionChain\chainNode\leetcode.js:467 user.sessionId = cookieData.sessionId; ^

TypeError: Cannot read properties of undefined (reading 'sessionId') at Request._callback (c:\Users\Administrator.vscode\extensions\ccagml.vscode-leetcode-problem-rating-2.17.4\out\src\rpc\actionChain\chainNode\leetcode.js:467:45)` 登录策略好像变了 这个错误是在一个 JavaScript 文件的第 577 行(源leetcode)(本项目467)发生的。代码尝试从 HTML 页面中提取 authenticity_token 的值,但没有成功。具体原因可能是 HTML 页面的结构发生了变化,导致代码无法正确解析

xubeng commented 1 year ago

leetcode.cn登录报错:{"code":-7,"msg":"You are not login yet?"} login: pass: {"code":-2,"msg":{"code":"SELF_SIGNED_CERT_IN_CHAIN"}}

kcfuler commented 1 year ago

cn 是用手机号注册登陆啊,或者其他网站授权登陆,com也登陆不了。

目前可以通过昵称+密码的方式进行登录 image image

ccagml commented 1 year ago

@theingz 我一直用 @kcfuler 发的方式登录, 你这个是 手机号 + 密码方式登录吗?

ccagml commented 1 year ago

@xubeng 你是怎么登录的呢? https://stackoverflow.com/questions/9626990/receiving-error-error-ssl-error-self-signed-cert-in-chain-while-using-npm 你这个看着跟你的环境有关?试试文章说的

npm config set strict-ssl false
ccagml commented 1 year ago

@AuroraMaster github方式的登录策略变了吗?看官方那个插件好像没人提这个?

xtheing commented 1 year ago

@theingz 我一直用 @kcfuler 发的方式登录, 你这个是 手机号 + 密码方式登录吗?

目前我是通过 cookie 进行登陆的。已经登陆进去了。 image

手机号是通过验证码登陆的,如果要用户名和密码登陆,还需要设置密码。目前我自己还没有测试这种方式登陆。 如果可以的话,可能需要修改登陆策略哦!

xubeng commented 1 year ago

@ccagml 已经全局设置了:image ,vscode还是同样的错误。

xubeng commented 1 year ago

@ccagml 在webstorm的插件也有问题,登录窗口打不开:image

ccagml commented 1 year ago

@xubeng webstorm的插件跟这个项目没关,这样看来,是不是你代理配得不对

xubeng commented 1 year ago

@ccagml jetbrain和vscode都已解决,应该是网络代理问题,需要保持IDE代理设置和本地网络代理设置一致。如果还报认证错误,针对vscode,可以再在用户变量里添加字段: image , 无需重启电脑。

针对webstorm,目前来看不配NODE_TLS_REJECT_UNAUTHORIZED没影响。

CTCSU commented 1 year ago

我这里用手机号+密码还是能登录进去