question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[🐛 Bug]: Adding CDP listener results in Connection pool is full errors

See original GitHub issue

What happened?

whenever I’m using CDP listener with the undetected driver, on the new version, I’m getting this error after adding a few listeners: WARNING:urllib3.connectionpool:Connection pool is full, discarding connection: localhost

By adding a CDP listener, a few times in a row, with 3 seconds interval between each, it’ll keep the errors shown above on the terminal. It was running fine on previous versions, however, the previous version was detected by Cloudflare, so using them is not an option for me. I guess the reason is that the CDP connection made will not be closed after they ran completely.

How can we reproduce the issue?

driver.add_cdp_listener('Network.requestWillBeSent', self.get_header)
I should also mention that the method get_header usually finishes in less than mili seconds.

Relevant log output

Python 3.9.9
undetected-chromedriver 3.1.3
selenium 4.1.0

-------------
WARNING:urllib3.connectionpool:Connection pool is full, discarding connection: localhost
WARNING:urllib3.connectionpool:Connection pool is full, discarding connection: localhost
WARNING:urllib3.connectionpool:Connection pool is full, discarding connection: localhost
WARNING:urllib3.connectionpool:Connection pool is full, discarding connection: localhost
WARNING:urllib3.connectionpool:Connection pool is full, discarding connection: localhost

Operating System

Macos & windows 10

Selenium version

Python 4.1

What are the browser(s) and version(s) where you see this issue?

Chrome v96

What are the browser driver(s) and version(s) where you see this issue?

Chromedriver v96

Are you using Selenium Grid?

No

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
github-actions[bot]commented, Jan 17, 2022

@ManiMozaffar, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers <div>

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

</div>
0reactions
github-actions[bot]commented, Apr 13, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error Messages and Various Failures | CDP Private Cloud
Possible cause: The issue is caused by legacy content in directories for TaskTracker and NodeManager that may exist after configuring Kerberos authentication ...
Read more >
All Connections In The Universal Connection Pool Are In Use
Using Oracle REST Data Services - ORDS (aka Apex Listener) when ... SEVERE: *** Error: Could not obtain a database connection because all ......
Read more >
Troubleshooting connection pooling (J2C) problems in ... - IBM
Yes, the root cause of the problem is that the application server JVM is not properly configured to load the native libraries. For...
Read more >
Salesforce Connector 10.13 Reference - Mule 4
Specifies the amount of time an object in the Connections pool lives if it was not used. 30. Time unit. Enumeration, one of:...
Read more >
BIG-IP 15.1.2.1 Fixes and Known Issues - AskF5 - F5 Networks
967745, 3-Major, Last resort pool error for the modify command for Wide IP ... 932937-2 : HTTP Explicit Proxy configurations can result in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found