Skip to content

Fails to login #2

@johntdyer

Description

@johntdyer

I am trying to log in and I'm getting the following error when running the UI

╰─ ENABLE_UI=true yarn start                                                                                     ─╯

yarn run v1.22.19
$ node index.js
(node:49527) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
HCTB-API is listening on port 8080 :)
[Info] Browser instance started
[Info] Opened a new page
[Info] Logging in to Here Comes The Bus
[Info] Parsing cookie
/Users/jdyer/Project/hctb-api/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:271
        throw new Error('Evaluation failed: ' + (0, util_js_1.getExceptionMessage)(exceptionDetails));
              ^

Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'value')
    at pptr://__puppeteer_evaluation_script__:2:72
    at ExecutionContext._ExecutionContext_evaluate (/Users/jdyer/Project/hctb-api/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:271:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async ExecutionContext.evaluate (/Users/jdyer/Project/hctb-api/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:118:16)
    at async JSHandle.evaluate (/Users/jdyer/Project/hctb-api/node_modules/puppeteer/lib/cjs/puppeteer/common/JSHandle.js:91:16)
    at async ElementHandle.$$eval (/Users/jdyer/Project/hctb-api/node_modules/puppeteer/lib/cjs/puppeteer/common/ElementHandle.js:192:24)
    at async /Users/jdyer/Project/hctb-api/index.js:99:19

Node.js v21.2.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions