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

Playwright timeout when using Quickstart Code #14

Closed
NelsonDane opened this issue Dec 23, 2022 · 2 comments
Closed

Playwright timeout when using Quickstart Code #14

NelsonDane opened this issue Dec 23, 2022 · 2 comments

Comments

@NelsonDane
Copy link
Contributor

Hello, and thank you for your work on the schwab-api! I have been using this for a long time without any issues when suddenly it started timing out. My login and secrets work correctly when I use the website (https://itsjafer.com/#/reversesplit), but when I use the same values in the Quickstart code (https://github.com/itsjafer/schwab-api#quickstart) I get the following output:

Logging into Schwab
Traceback (most recent call last):
  File "/Users/ndane/Documents/Github/auto-rsa/test.py", line 9, in <module>
    logged_in = api.login(
  File "/usr/local/lib/python3.10/site-packages/schwab_api/authentication.py", line 85, in login
    self.page.wait_for_load_state('networkidle')
  File "/usr/local/lib/python3.10/site-packages/playwright/sync_api/_generated.py", line 7371, in wait_for_load_state
    self._sync(self._impl_obj.wait_for_load_state(state=state, timeout=timeout))
  File "/usr/local/lib/python3.10/site-packages/playwright/_impl/_sync_base.py", line 89, in _sync
    return task.result()
  File "/usr/local/lib/python3.10/site-packages/playwright/_impl/_page.py", line 512, in wait_for_load_state
    return await self._main_frame.wait_for_load_state(**locals_to_params(locals()))
  File "/usr/local/lib/python3.10/site-packages/playwright/_impl/_frame.py", line 231, in wait_for_load_state
    return await self._wait_for_load_state_impl(state, timeout)
  File "/usr/local/lib/python3.10/site-packages/playwright/_impl/_frame.py", line 255, in _wait_for_load_state_impl
    await wait_helper.result()
playwright._impl._api_types.TimeoutError: Timeout 30000.0ms exceeded.
=========================== logs ===========================
"commit" event fired
"load" event fired
============================================================

I think it may be related to the issue (#13) but would appreciate a solution. Thank you!

@itsjafer
Copy link
Owner

itsjafer commented Apr 2, 2023

Hi, this should be fixed with the version 0.2.3!

@itsjafer itsjafer closed this as completed Apr 2, 2023
@NelsonDane
Copy link
Contributor Author

Everything works again, thank you so much!

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