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

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

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Reactions: 13
  • Comments: 25

Most upvoted comments

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

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.

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!

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.

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