Cannot login at all: not only with premium account but also none premium account.
kgfly opened this issue ยท 25 comments
Problem Summary
Cannot login.
Tried premium and none premium account.
Neither can login.
How to reproduce
log out / log in.
Environment
- leetcode-cli version:
- OS version: Ubutu 18 LTS
Same problem.
version: 2.6.2
Premium Account.
Same problem. test on all accounts, even the new created one.
Same problem, non-premium account:
OS: win 10
node: V12.13.0
npm: 6.12.0
leetcode-cli: 2.6.2
@skygragon / @jdneo . Sorry for bothering. We're totally stuck because we cannot login. Could you please help us out?
Same problem.
OS: MacOS 10.13
Version: 2.6.2
Same problem.
OS: MacOS 10.15.1
Version: 2.6.2
Node.js version: v13.2.0
I'm a newbie here and cannot login ><...
Same problem.
OS: macOS 10.14.6
Version: 2.6.2
the plugin is now blocked by leetcode, i guess
Same problem.
OS: ubuntu 16.04
Version: 2.6.2
Could be an issue with LC adding another level of authentication through captcha.
My dev env is mac, it works for me below.
Edit ~./lc/plugin.json, set the cookie.chrome value is true, open the chrome and login in leetcode accout.
Next login will success.
After leetcode plugin -i cookie.chrome, it works!
Thanks!
@lang010 did you have to log in through the browser before cli? I donโt have access to a browser (VPS through SSH), so even when I edit the plugins.json, I get the error:
[ERROR] Failed to copy cookies from profile "Default"
[ERROR] Error: SQLITE_CANTOPEN: unable to open database file
[ERROR] invalid password?
UPDATE: This helped me fix it.
I am having the same problem. My dev environment is Mac. I tried setting "leetcode plugin -i cookie.chrome" and login using Chrome but that did not work for me.
WHen I login, i get the following:
[ERROR] Failed to copy cookies from profile "Default"
[ERROR] Not found cookie: LEETCODE_SESSION
[ERROR] invalid password?
Can you please look into this? This is blocking us. Thanks in advance!
vsc-leetcode-cli
https://www.npmjs.com/package/vsc-leetcode-cli
vsc-leetcode-cli
https://www.npmjs.com/package/vsc-leetcode-cli
Thank you @hardboydu for the link! Appreciate that.
Btw, I tried installing vsc-leetcode-cli which went fine. But, I am still not able to get leetcode executable.. Am I missing something? Is it just for Visual Studio Code?
$ sudo npm i vsc-leetcode-cli
- vsc-leetcode-cli@2.6.19
updated 1 package and audited 465 packages in 4.125s
found 0 vulnerabilities
$ leetcode
-bash: leetcode: command not found
$
Thanks in advance!!
Thank you @hardboydu ! I was able to make it work.
Thank you @hardboydu ! I was able to make it work.
Can you share your way to make it work? Thanks
@lang010 did you have to log in through the browser before cli? I donโt have access to a browser (VPS through SSH), so even when I edit the
plugins.json, I get the error:[ERROR] Failed to copy cookies from profile "Default" [ERROR] Error: SQLITE_CANTOPEN: unable to open database file [ERROR] invalid password?UPDATE: This helped me fix it.
Same issue. Did you move to using VSCode Leetocode ?
vsc-leetcode-cli
https://www.npmjs.com/package/vsc-leetcode-cliThank you @hardboydu for the link! Appreciate that.
Btw, I tried installing vsc-leetcode-cli which went fine. But, I am still not able to get leetcode executable.. Am I missing something? Is it just for Visual Studio Code?
$ sudo npm i vsc-leetcode-cli
- vsc-leetcode-cli@2.6.19
updated 1 package and audited 465 packages in 4.125s
found 0 vulnerabilities$ leetcode
-bash: leetcode: command not found
$Thanks in advance!!
npm install -g vsc-leetcode-cli
leetcode user -lPaste your user name and cookies here.
@lang010 did you have to log in through the browser before cli? I donโt have access to a browser (VPS through SSH), so even when I edit the
plugins.json, I get the error:[ERROR] Failed to copy cookies from profile "Default" [ERROR] Error: SQLITE_CANTOPEN: unable to open database file [ERROR] invalid password?UPDATE: This helped me fix it.
Same issue. Did you move to using VSCode Leetocode ?
eventually it worked to me just doing leetcode user -lc then insert username and password and it worked. I had a leetcode session legged in on chrome but I don't think it counts in any way
Error: Cannot find module 'C:\Users\z\AppData\Roaming\npm\node_modules\leetcode-cli\node_modules\sqlite3\lib\binding\node-v72-win32-x64\node_sqlite3.node'