I am running selenium automation scripts using python3, on linux and undetected_chrome.
I am also using proxies.
When I run only one instances it works fine and does the job however the moment a second instance is launched I get this error :
2024-04-30 00:09:28 – ERROR – HTTPConnectionPool(host=’localhost’, port=44073): Max retries exceeded with url: /session/2488e939aa54121cb42b165948495489/actions (Caused by NewConnectionError(‘<urllib3.connection.HTTPConnection object at 0x7debd7c86fb0>: Failed to establish a new connection: [Errno 111] Connection refused’))
Despite the proxies are changing with each driver.
I have trying all kinds of solutions I could think of around it.
-I have moved into different scripts and run them from different terminals.
-I have launched one instance with proxy and once instance without a proxy.
This is all I could think of but I did not get anywhere.
Can you please help me with this.
Wajih Wanis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.