Skip to content
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

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

Open
henricook opened this issue Jun 14, 2020 · 1 comment
Open

Comments

@henricook
Copy link

henricook commented Jun 14, 2020

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

@rtk126
Copy link

rtk126 commented Dec 19, 2020

I have the same exact issue with BA as well.

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