Skip to content

Cannot login due to undefined id_hash #92

Closed
@ctanpf

Description

@ctanpf

Problem Summary

How to reproduce

  1. leetcode user -l -vv
  2. Getting id_hash undefined at leetcode.js, expecting login success
[TRACE] REQUEST %s end event https://leetcode.com/list/api/questions
[TRACE] REQUEST %s has body https://leetcode.com/list/api/questions 38249
[TRACE] REQUEST %s emitting complete https://leetcode.com/list/api/questions
/Users/cliff.tan/workspace/misc/leetcode-cli/lib/plugins/leetcode.js:461
    user.hash = favorite.id_hash;
                         ^

TypeError: Cannot read property 'id_hash' of undefined
    at /Users/cliff.tan/workspace/misc/leetcode-cli/lib/plugins/leetcode.js:461:26
    at Request._callback (/Users/cliff.tan/workspace/misc/leetcode-cli/lib/plugins/leetcode.js:376:12)
    at Request.self.callback (/Users/cliff.tan/node_modules/request/request.js:186:22)
    at Request.emit (events.js:159:13)
    at Request.<anonymous> (/Users/cliff.tan/node_modules/request/request.js:1163:10)
    at Request.emit (events.js:159:13)
    at IncomingMessage.<anonymous> (/Users/cliff.tan/node_modules/request/request.js:1085:12)
    at Object.onceWrapper (events.js:254:19)
    at IncomingMessage.emit (events.js:164:20)
    at endReadableNT (_stream_readable.js:1054:12)

Environment

  • leetcode-cli version: 2.5.1
  • git last commit: 1cee26c
  • OS version: macOS High Sierra 10.13.3
  • Node version: 9.2.1
  • Npm version: 5.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions