Cannot login with premium account
See original GitHub issueProblem Summary
Recently bought premium and can’t seem to log in anymore.
How to reproduce
Ran ./bin/leetcode user --login -vv
Get: [ERROR] invalid password?
(403 forbidden)
Here is the full trace:
[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: mylogin
pass:
[DEBUG] running leetcode.login
[DEBUG] running leetcode.signin
⠋ Signing in leetcode.com[TRACE] REQUEST %s { uri: 'https://leetcode.com/accounts/login/',
callback: [Function] }
[TRACE] REQUEST %s make request https://leetcode.com/accounts/login/
⠸ Signing in leetcode.com[TRACE] REQUEST %s onRequestResponse https://leetcode.com/accounts/login/ 200 { date: 'Sat, 23 Nov 2019 04:51:13 GMT',
'content-type': 'text/html; charset=utf-8',
'transfer-encoding': 'chunked',
connection: 'close',
'set-cookie': [...],
vary: 'Accept-Encoding, Cookie',
'x-frame-options': 'SAMEORIGIN',
'cf-cache-status': 'DYNAMIC',
'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
'x-content-type-options': 'nosniff',
'expect-ct':
'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
server: 'cloudflare',
'cf-ray': '...' }
[TRACE] REQUEST %s reading response's body
[TRACE] REQUEST %s finish init function https://leetcode.com/accounts/login/
⠼ Signing in leetcode.com[TRACE] REQUEST %s response end https://leetcode.com/accounts/login/ 200 { date: 'Sat, 23 Nov 2019 04:51:13 GMT',
'content-type': 'text/html; charset=utf-8',
'transfer-encoding': 'chunked',
connection: 'close',
'set-cookie': [...],
vary: 'Accept-Encoding, Cookie',
'x-frame-options': 'SAMEORIGIN',
'cf-cache-status': 'DYNAMIC',
'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
'x-content-type-options': 'nosniff',
'expect-ct':
'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
server: 'cloudflare',
'cf-ray': '...' }
[TRACE] REQUEST %s end event https://leetcode.com/accounts/login/
[TRACE] REQUEST %s has body https://leetcode.com/accounts/login/ 32265
[TRACE] REQUEST %s emitting complete https://leetcode.com/accounts/login/
[TRACE] REQUEST %s { url: 'https://leetcode.com/accounts/login/',
headers:
{ Origin: 'https://leetcode.com',
Referer: 'https://leetcode.com/accounts/login/',
Cookie:
<hidden> },
form:
{ csrfmiddlewaretoken: '...',
login: 'redacted_login',
password: 'redacted_password' },
callback: [Function],
method: 'POST' }
[TRACE] REQUEST %s make request https://leetcode.com/accounts/login/
[TRACE] REQUEST %s onRequestResponse https://leetcode.com/accounts/login/ 403 { date: 'Sat, 23 Nov 2019 04:51:14 GMT',
'content-type': 'text/html; charset=utf-8',
'transfer-encoding': 'chunked',
connection: 'close',
'set-cookie': [ ...],
vary: 'Cookie',
'x-frame-options': 'SAMEORIGIN',
'cf-cache-status': 'DYNAMIC',
'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
'x-content-type-options': 'nosniff',
'expect-ct':
'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
server: 'cloudflare',
'cf-ray': '...' }
[TRACE] REQUEST %s reading response's body
[TRACE] REQUEST %s finish init function https://leetcode.com/accounts/login/
[TRACE] REQUEST %s response end https://leetcode.com/accounts/login/ 403 { date: 'Sat, 23 Nov 2019 04:51:14 GMT',
'content-type': 'text/html; charset=utf-8',
'transfer-encoding': 'chunked',
connection: 'close',
'set-cookie': [...],
vary: 'Cookie',
'x-frame-options': 'SAMEORIGIN',
'cf-cache-status': 'DYNAMIC',
'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
'x-content-type-options': 'nosniff',
'expect-ct':
'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
server: 'cloudflare',
'cf-ray': '...' }
[TRACE] REQUEST %s end event https://leetcode.com/accounts/login/
[TRACE] REQUEST %s emitting complete https://leetcode.com/accounts/login/
[ERROR] invalid password?
Environment
- leetcode-cli version: 2.6.2-5245886
- OS version: darwin 18.6.0
- Node version: v10.16.2
- Npm version: 6.9.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:16
Top Results From Across the Web
can't log into my premium account - The Spotify Community
The only option is to contact Spotify and ask for your account to either remain with Facebook and your current login or have...
Read more >I cannot login to my Premium account. What should I do?
In the top right, locate and click the "Premium login" link. Enter you username and password. Make sure you use the same e-mail...
Read more >I cannot log into my premium account. It's not available on ...
I cannot log into my premium account. It's not available on mobile. Issue with new GMAIL address - Google Account Community.
Read more >I can't access my Microsoft 365 Business Premium account
To access the subscription details you'll need to login with the admin account you created when you first established that tenant. You can ......
Read more >Fix: Can't Log in to Spotify With Correct Password - Technipages
If you can't login to your Spotify account although you're using the correct username and password, reset your password and update the app....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It seems I’m able to get the cli working by manually logging into the site in a browser, viewing the cookies, and creating the
~/.lc/leetcode/user.json
by hand. My file looks like …Currently, I’ve only tested showing my account status and listing problems.
most probably, leetcode recently enhance the security set of its API, that’s why our login request failed. I am trying to fix this issue, but no luck yet…