Skip to content
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

login with error: [ERROR] Error: certificate has expired #213

Open
zxmrlc opened this issue Jun 19, 2020 · 1 comment
Open

login with error: [ERROR] Error: certificate has expired #213

zxmrlc opened this issue Jun 19, 2020 · 1 comment

Comments

@zxmrlc
Copy link

zxmrlc commented Jun 19, 2020

first I replace all leetcode.com with leetcode-cn.com in /usr/local/lib/node_modules/leetcode-cli
then login .
root@NC:~# leetcode user -l -vv
[TRACE] initializing all plugins
[TRACE] found plugin: cache=default
[TRACE] found plugin: leetcode=default
[TRACE] found plugin: retry=default
[TRACE] inited plugin: leetcode
[TRACE] inited plugin: retry
[TRACE] inited plugin: cache
login: myAccount
pass:
[DEBUG] running leetcode.login
[DEBUG] running leetcode.signin
⠋ Signing in leetcode-cn.com[TRACE] REQUEST %s { uri: 'https://leetcode-cn.com/accounts/login/',
callback: [Function] }
[TRACE] REQUEST %s make request https://leetcode-cn.com/accounts/login/
[ERROR] Error: certificate has expired

@DeJoker
Copy link

DeJoker commented Jun 28, 2020

+1 我的情况是

[ERROR] Error: certificate has expired
login: pass: /root/.vscode-server/extensions/leetcode.vscode-leetcode-0.16.2/node_modules/vsc-leetcode-cli/lib/plugins/leetcode.js:565
const redirectUri = resp.request.uri.href;

TypeError: Cannot read property 'request' of undefined
at Request._callback (/root/.vscode-server/extensions/leetcode.vscode-leetcode-0.16.2/node_modules/vsc-leetcode-cli/lib/plugins/leetcode.js:565:30)
at self.callback (/root/.vscode-server/extensions/leetcode.vscode-leetcode-0.16.2/node_modules/request/request.js:185:22)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at Request.onRequestError (/root/.vscode-server/extensions/leetcode.vscode-leetcode-0.16.2/node_modules/request/request.js:881:8)
at emitOne (events.js:116:13)
at ClientRequest.emit (events.js:211:7)
at TLSSocket.socketErrorListener (_http_client.js:387:9)
at emitOne (events.js:116:13)
at TLSSocket.emit (events.js:211:7)

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

2 participants