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

urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=65490): Max retries exceeded with url: /session/31240dfcb6938ff45dac0bff0c28adb4/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000002976863E510>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it #1923

Open
mikolajstanco opened this issue Jun 16, 2024 · 0 comments

Comments

@mikolajstanco
Copy link

OS Name: Microsoft Windows 10 Professional Edition
OS Version: 19045.4529
Python Version: 3.11.9
undetected_chromedriver version: 3.5.5
-----------------------------------------ERROR------------------------------------------------
Traceback (most recent call last):
File "C:\Users\Mikolaj\Desktop\gen.venv\Lib\site-packages\urllib3\connection.py", line 198, in _new_conn
sock = connection.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Mikolaj\Desktop\gen.venv\Lib\site-packages\urllib3\util\connection.py", line 85, in create_connection
raise err
File "C:\Users\Mikolaj\Desktop\gen.venv\Lib\site-packages\urllib3\util\connection.py", line 73, in create_connection
sock.connect(sa)
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\Mikolaj\Desktop\gen.venv\Lib\site-packages\urllib3\connectionpool.py", line 793, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "C:\Users\Mikolaj\Desktop\gen.venv\Lib\site-packages\urllib3\connectionpool.py", line 496, in _make_request
conn.request(
File "C:\Users\Mikolaj\Desktop\gen.venv\Lib\site-packages\urllib3\connection.py", line 400, in request
self.endheaders()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\http\client.py", line 1298, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\http\client.py", line 1058, in _send_output
self.send(msg)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\http\client.py", line 996, in send
self.connect()
File "C:\Users\Mikolaj\Desktop\gen.venv\Lib\site-packages\urllib3\connection.py", line 238, in connect
self.sock = self._new_conn()
^^^^^^^^^^^^^^^^
File "C:\Users\Mikolaj\Desktop\gen.venv\Lib\site-packages\urllib3\connection.py", line 213, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x000002976863E510>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it

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

1 participant