sup3rgiu / PoliWebex

Save WebEx videos uploaded by Politecnico di Milano.
MIT License
35 stars 9 forks source link

UnhandledPromiseRejectionWarning: TimeoutError: waiting for selector "input[id="login"]" failed: timeout 30000ms exceeded #13

Open francesco-plt opened 3 years ago

francesco-plt commented 3 years ago

I keep getting this error. Full log:

Reusing password saved in system's keychain!

Launching headless Chrome to perform the OpenID Connect dance...
Navigating to WebEx login page...
Filling in Servizi Online login form...
(node:19864) UnhandledPromiseRejectionWarning: TimeoutError: waiting for selector "input[id="login"]" failed: timeout 30000ms exceeded
    at new WaitTask (C:\Users\frapa\bin\PoliWebex\node_modules\puppeteer\lib\DOMWorld.js:549:28)
    at DOMWorld._waitForSelectorOrXPath (C:\Users\frapa\bin\PoliWebex\node_modules\puppeteer\lib\DOMWorld.js:478:22)
    at DOMWorld.waitForSelector (C:\Users\frapa\bin\PoliWebex\node_modules\puppeteer\lib\DOMWorld.js:432:17)
    at Frame.waitForSelector (C:\Users\frapa\bin\PoliWebex\node_modules\puppeteer\lib\FrameManager.js:627:47)
    at Frame.<anonymous> (C:\Users\frapa\bin\PoliWebex\node_modules\puppeteer\lib\helper.js:112:23)
    at Page.waitForSelector (C:\Users\frapa\bin\PoliWebex\node_modules\puppeteer\lib\Page.js:1122:29)
    at login (C:\Users\frapa\bin\PoliWebex\poliwebex.js:275:16)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async downloadVideo (C:\Users\frapa\bin\PoliWebex\poliwebex.js:125:16)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:19864) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:19864) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.