Skip to content

CDP Timeout Error #3759

Closed
Closed
@breadacker

Description

@breadacker

I have been running the following code for almost 3 days successfully, but today I got this error which I couldnt resolve?

with SB(uc=True, headless2=headless, maximize=True, incognito=True, do_not_track=True, ad_block=True) as sb:
# Open the main page once
sb.activate_cdp_mode(url)
sb.sleep(10)

Traceback (most recent call last):
sb.activate_cdp_mode(url)
File "base_case.py", line 4841, in activate_cdp_mode
self.driver.uc_open_with_cdp_mode(url)
File "browser_launcher.py", line 5338, in
lambda *args, **kwargs: uc_open_with_cdp_mode(
File "browser_launcher.py", line 599, in uc_open_with_cdp_mode
page = loop.run_until_complete(driver.cdp_base.get(url))
File "asyncio/base_events.py", line 653, in run_until_complete
return future.result()
File "browser.py", line 288, in get
frame_id, loader_id, *_ = await connection.send(
File "connection.py", line 396, in send
await self.aopen()
File "connection.py", line 267, in aopen
self.websocket = await websockets.connect(
File "asyncio/client.py", line 478, in await_impl
raise TimeoutError("timed out during handshake") from None

TimeoutError: timed out during handshake

Metadata

Metadata

Assignees

No one assigned

    Labels

    UC Mode / CDP ModeUndetected Chromedriver Mode / CDP Modecan't reproduceWe tried to see what you saw, but didn'tinvalid usageYou may need to change what you're doing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions