I am getting this error frequently not everytime.
HTTPConnectionPool(host='localhost', port=32817): Max retries exceeded with url: /session/286f9b1508aa3fab78fee8a606577194/execute/sync (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fd56e845400>: Failed to establish a new connection: [Errno 111] Connection refused'))
When i send request again, it works. But doesnt work when i send subsequent requests.
What i am doing wrong.
I am using these chrome options
`
proxies: dict = {
"httpProxy": proxy_string
}
options.proxy = Proxy(proxies)
# Other Chrome options
options.add_argument("--no-sandbox")
options.add_argument("--headless")
options.add_argument('--ignore-certificate-errors')
options.add_argument("--disable-gpu")
options.add_argument("--disable-software-rasterizer")
options.add_argument("--incognito")
options.add_argument("--disable-dev-shm-usage")
options.add_argument("--window-size=1920,1080")
options.add_argument("--start-maximized")
options.add_argument("--disable-popup-blocking")
options.add_argument("--disable-extensions")
options.add_argument("--no-zygote")
options.add_argument("--disable-notifications")`
Using chrome version as 126.0.6478.55
Please let me know if any further info required.
I have tried hitting request again and again. Sometimes its working and sometimes giving exception.
sudhanshu saini is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.