Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Trouble with UC CDP mode connection is CLOSED #3731

RoxDevvv started this conversation in General
Discussion options

Hi,

I'm using SeleniumBase with uc=True and activate_cdp_mode()
with SB(
uc=True,
is_mobile=isMobile,
browser="chrome",
extension_dir=extension_path,
user_data_dir=profile_path,
chromium_arg=var_chromium_arg,
settings_file="./MySetting.py",
pls="none",
disable_beforeunload=True,
skip_js_waits=True,
) as sb:

 sb.cdp.add_handler(
 mycdp.fetch.RequestPaused, self.request_paused_handler
 )

Everything works fine but sometimes when I leave the browser running for a long time it gives this error and browser stops

Is there a solution to this problem please?

[DEBUG ] < CLOSE 1000 (OK) [2 bytes]
[DEBUG ] < EOF
[DEBUG ] > EOF
[DEBUG ] = connection is CLOSED
[DEBUG ] x half-closing TCP connection
[DEBUG ] [Connection listener exception while reading websocket]
sent 1000 (OK); then received 1000 (OK)
[DEBUG ]
❌ Closed websocket connection to ws://127.0.0.1:9222/devtools/page/8DCDFE778C19896D8F48E78C53187C64

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /