Skip to content

Failed to Retrieve User Favorites #208

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

Closed
Austin-Ma opened this issue Apr 7, 2020 · 2 comments
Closed

Failed to Retrieve User Favorites #208

Austin-Ma opened this issue Apr 7, 2020 · 2 comments

Comments

@Austin-Ma
Copy link

Cannot connect through login

How to reproduce

leetcode plugin -i cookie.chrome
leetcode user -l

Stack Trace below

[WARN] Failed to retrieve user favorites: [object Object]
/usr/local/lib/node_modules/leetcode-cli/lib/plugins/leetcode.js:515
user.paid = _user.isCurrentUserPremium;
^

TypeError: Cannot read property 'isCurrentUserPremium' of null
at /usr/local/lib/node_modules/leetcode-cli/lib/plugins/leetcode.js:515:27
at Request._callback (/usr/local/lib/node_modules/leetcode-cli/lib/plugins/leetcode.js:421:12)
at Request.self.callback (/usr/local/lib/node_modules/leetcode-cli/node_modules/request/request.js:185:22)
at Request.emit (events.js:315:20)
at Request. (/usr/local/lib/node_modules/leetcode-cli/node_modules/request/request.js:1161:10)
at Request.emit (events.js:315:20)
at IncomingMessage. (/usr/local/lib/node_modules/leetcode-cli/node_modules/request/request.js:1083:12)
at Object.onceWrapper (eve

Environment

leetcode-cli version: 2.6.2
OS version: 10.15.3
Node Version: 13.12.0
NPM version : 6.14.4

@sanketvega
Copy link

+1

@Austin-Ma
Copy link
Author

Resolved with
#194 (comment)

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