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

Cannot login at all: not only with premium account but also none premium account.

Open kgfly opened this issue 4 years ago • 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

kgfly avatar Nov 24 '19 21:11 kgfly

Same problem.

version: 2.6.2 Premium Account.

cheung-chifung avatar Nov 25 '19 15:11 cheung-chifung

Same problem. test on all accounts, even the new created one.

dinglioutlook avatar Nov 26 '19 00:11 dinglioutlook

Same problem, non-premium account: OS: win 10 node: V12.13.0 npm: 6.12.0 leetcode-cli: 2.6.2

justincui avatar Nov 27 '19 18:11 justincui

@skygragon / @jdneo . Sorry for bothering. We're totally stuck because we cannot login. Could you please help us out?

flyingosprey avatar Nov 27 '19 21:11 flyingosprey

Same problem. OS: MacOS 10.13 Version: 2.6.2

GaoangLiu avatar Nov 28 '19 02:11 GaoangLiu

Same problem. OS: MacOS 10.15.1 Version: 2.6.2 Node.js version: v13.2.0

ffk0716 avatar Dec 01 '19 02:12 ffk0716

I'm a newbie here and cannot login ><...

h13o avatar Dec 01 '19 10:12 h13o

Same problem. OS: macOS 10.14.6 Version: 2.6.2

nettee avatar Dec 03 '19 11:12 nettee

#196

xiaoheiAh avatar Dec 04 '19 11:12 xiaoheiAh

the plugin is now blocked by leetcode, i guess

htang2023 avatar Dec 05 '19 02:12 htang2023

Same problem. OS: ubuntu 16.04 Version: 2.6.2

minna-ust avatar Dec 05 '19 16:12 minna-ust

Could be an issue with LC adding another level of authentication through captcha.

nicoflojo avatar Dec 14 '19 01:12 nicoflojo

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.

leonyzhe avatar Dec 15 '19 12:12 leonyzhe

Thank you @leonyzhe! I can log in successfully by editing ~/.lc/plugin.json as @leonyzhe shows. My plugin.json has the following content now:

{"cache":true,"retry":true,"leetcode":true,"cookie.chrome":true}

I appended "cookie.chrome":true.

shuuji3 avatar Dec 16 '19 23:12 shuuji3

After leetcode plugin -i cookie.chrome, it works! Thanks!

lang010 avatar Dec 18 '19 08:12 lang010

@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.

mmahmad avatar Dec 23 '19 00:12 mmahmad

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!

pkm2019 avatar Dec 25 '19 20:12 pkm2019

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

  • [email protected] updated 1 package and audited 465 packages in 4.125s found 0 vulnerabilities

$ leetcode -bash: leetcode: command not found $

Thanks in advance!!

pkm2019 avatar Dec 27 '19 18:12 pkm2019

Thank you @hardboydu ! I was able to make it work.

pkm2019 avatar Jan 05 '20 20:01 pkm2019

Thank you @hardboydu ! I was able to make it work.

Can you share your way to make it work? Thanks

xavier90 avatar Jan 15 '20 20:01 xavier90

@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 ?

abhijeeg avatar Feb 23 '20 22:02 abhijeeg

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

  • [email protected] 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 -l

Paste your user name and cookies here.

haotian-wang avatar May 16 '20 18:05 haotian-wang

@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

AlessandroSteri avatar Jun 12 '20 17:06 AlessandroSteri

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'

zzj0402 avatar Jul 01 '20 04:07 zzj0402