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

[NODRIVER] websockets=14.0 breaks browser start #2069

Open
rhjsong opened this issue Nov 11, 2024 · 2 comments
Open

[NODRIVER] websockets=14.0 breaks browser start #2069

rhjsong opened this issue Nov 11, 2024 · 2 comments

Comments

@rhjsong
Copy link

rhjsong commented Nov 11, 2024

Got the following exception using websockets=14.0. Downgrading websockets to 13.1 fixes the issue.

Traceback (most recent call last):
  File "/handler.py", line 341, in <module>
    main()
  File "/handler.py", line 224, in main
    browser = await uc.start(headless=False)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/nodriver/core/util.py", line 96, in start
    return await Browser.create(config)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/nodriver/core/browser.py", line 91, in create
    await instance.start()
  File "/usr/local/lib/python3.12/site-packages/nodriver/core/browser.py", line 394, in start
    await self.connection.send(cdp.target.set_discover_targets(discover=True))
  File "/usr/local/lib/python3.12/site-packages/nodriver/core/connection.py", line 412, in send
    if not self.websocket or self.closed:
                             ^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/nodriver/core/connection.py", line 368, in __getattr__
    return getattr(self.target, item)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'closed'
@YeiSimon
Copy link

I got the same issue here , when I started my initialize my browser?

@cora527
Copy link

cora527 commented Nov 18, 2024

that is good! thank u ,it solve my problme!!

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

3 participants