I have a small seleniumbase parser which works fine with a list of auth proxies on Windows. After deploying it on ubuntu server, the code crashed with an exception:
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:хххх from chrome not reachable
The sample code is as follows:
from seleniumbase import Driver
proxy = LOGIN:PASSWORD@IP:PORT
def get_browser():
browser = Driver(
uc=True,
undetectable=True,
headless=True,
proxy=proxy
)
return browser
browser = get_browser()
browser.open(WEBSITE)
Without a proxy the parser works OK. I'd appreciate any clues as to what to fix in the code.