Skip to content

BA: Cannot progress after login. Cannot read property 'value' of null #76

Description

@henricook

Hello, I'm very excited to use Flightplan.

After setting up my config file with just BA credentials and doing a test run - I get these errors, is anyone able to help?

➜  flightplan-tool node bin/cli.js search -w BA -f LON -t SFO -c first -s 2020-10-01 -e 2020-10-15 -q 1

flightplan search 0.3.51
Searching 15 days of award inventory: 10/01/2020 - 10/15/2020
[BA] DEPARTURE [SFO -> LON] - 2020-10-01 (1 Passenger)
[BA] info Logging in...
[BA] info 2nd login attempt...
[BA] error Unexpected error occurred while searching!
Error: Evaluation failed: TypeError: Cannot read property 'value' of null
    at __puppeteer_evaluation_script__:1:36
    at ExecutionContext._evaluateInternal (/home/henri/repos/points/node_modules/puppeteer/lib/ExecutionContext.js:122:13)
    at process._tickCallback (internal/process/next_tick.js:68:7)
  -- ASYNC --
    at ExecutionContext.<anonymous> (/home/henri/repos/points/node_modules/puppeteer/lib/helper.js:111:15)
    at DOMWorld.evaluate (/home/henri/repos/points/node_modules/puppeteer/lib/DOMWorld.js:112:20)
    at process._tickCallback (internal/process/next_tick.js:68:7)
  -- ASYNC --
    at Frame.<anonymous> (/home/henri/repos/points/node_modules/puppeteer/lib/helper.js:111:15)
    at Page.evaluate (/home/henri/repos/points/node_modules/puppeteer/lib/Page.js:833:43)
    at Page.<anonymous> (/home/henri/repos/points/node_modules/puppeteer/lib/helper.js:112:23)
    at module.exports.enterText (/home/henri/repos/points/node_modules/flightplan-tool/src/Searcher.js:141:34)
    at module.exports.login (/home/henri/repos/points/node_modules/flightplan-tool/src/engines/ba/searcher.js:28:16)
    at Object.login (/home/henri/repos/points/node_modules/flightplan-tool/src/Engine.js:256:22)
    at process._tickCallback (internal/process/next_tick.js:68:7)
[BA] DEPARTURE [SFO -> LON] - 2020-10-02 (1 Passenger)
[BA] info Logging in...
[BA] error Unexpected error occurred while searching!
Error: Evaluation failed: TypeError: Cannot read property 'value' of null
    at __puppeteer_evaluation_script__:1:36
    at ExecutionContext._evaluateInternal (/home/henri/repos/points/node_modules/puppeteer/lib/ExecutionContext.js:122:13)
    at process._tickCallback (internal/process/next_tick.js:68:7)
  -- ASYNC --
    at ExecutionContext.<anonymous> (/home/henri/repos/points/node_modules/puppeteer/lib/helper.js:111:15)
    at DOMWorld.evaluate (/home/henri/repos/points/node_modules/puppeteer/lib/DOMWorld.js:112:20)
    at process._tickCallback (internal/process/next_tick.js:68:7)
  -- ASYNC --
    at Frame.<anonymous> (/home/henri/repos/points/node_modules/puppeteer/lib/helper.js:111:15)
    at Page.evaluate (/home/henri/repos/points/node_modules/puppeteer/lib/Page.js:833:43)
    at Page.<anonymous> (/home/henri/repos/points/node_modules/puppeteer/lib/helper.js:112:23)
    at module.exports.enterText (/home/henri/repos/points/node_modules/flightplan-tool/src/Searcher.js:141:34)
    at module.exports.login (/home/henri/repos/points/node_modules/flightplan-tool/src/engines/ba/searcher.js:28:16)
    at Object.login (/home/henri/repos/points/node_modules/flightplan-tool/src/Engine.js:256:22)
    at process._tickCallback (internal/process/next_tick.js:68:7)
[BA] DEPARTURE [SFO -> LON] - 2020-10-03 (1 Passenger)                                                                                                                                                                                                                                   ```

➜ flightplan-tool node -v
Node version: v10.13.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions