-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Hi,
Thank you so much for writing this!
I'm trying to get it to work on an Ubuntu VM, latest version and am getting timeouts on the #schwablmslogin locator. I couldn't get this far until I changed the browser type to chromium instead of firefox, but now I'm stuck. I've tried it multiple times on a Linux VM as well as in WSL and keep hitting the 30 second timeout. I looked at the schwab website and the schwablmslogin iframe is still there.
Thanks,
Dave
Log:
2024-06-19T19:38:30.475Z info: retrieving account information
2024-06-19T19:38:30.477Z debug: performing HTTP GET request with authentication: https://client.schwab.com/api/PositionV2/PositionsDataV2
2024-06-19T19:38:30.477Z debug: authenticating request with options: {"loginIfRequired":true,"rememberDevice":true}
2024-06-19T19:38:30.477Z info: login required, attempting login
2024-06-19T19:38:30.478Z debug: initializing chromium browser with headless: true
2024-06-19T19:38:31.065Z debug: initializing new context with user agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
2024-06-19T19:38:31.115Z debug: initializing new page with viewport: {"width":1920,"height":1080}
2024-06-19T19:38:34.804Z debug: navigating to : https://www.schwab.com/
2024-06-19T19:38:35.733Z debug: waiting for login frame : #schwablmslogin
2024-06-19T19:39:05.738Z info: failed to retrieve account information: TimeoutError: page.waitForSelector: Timeout 30000ms exceeded.
Call log:
- waiting for locator('#schwablmslogin') to be visible
2024-06-19T19:39:05.738Z error: Retrieving account information was not successful.
2024-06-19T19:39:05.738Z error: The attempt to retrieve account information produced the following error:
2024-06-19T19:39:05.738Z error: page.waitForSelector: Timeout 30000ms exceeded.
Call log:
-
waiting for locator('#schwablmslogin') to be visible
at /home/dcrook/node_modules/schwab-api/lib/session.js:268:29
at async withCleanErrors (/home/dcrook/node_modules/schwab-api/lib/logging.js:20:16)
at async Schwab.authenticate (/home/dcrook/node_modules/schwab-api/lib/session.js:61:34)