You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am using a Headless Linux Server from Azure to bypass a captcha which requires me to click the cloudflare captcha box,
When I run with:
with SB(uc=True, headless=True, incognito=True) as sb:
sb.driver.uc_open_with_reconnect(url, 10)
Then It cannot bypass the captcha page. I also cannot use: sb.uc_gui_click_captcha() since PyAutoGUI can't be used in headless mode.
If I try to use sb.uc_gui_click_captcha() by making headless False : SB(uc=True, headless=False, incognito=True) as sb:, I get:
start error
X11 display failed! Will use regular xvfb!
Even setting: SB(uc=True, headless=False, incognito=True, xvfb=True) as sb: results in the same X11 display failed error even though I have manually verified having it.
NOTE: Browser was installed via sudo apt install google-chrome-stable
What can I do to bypass this captcha on my headless linux machine? I have read multiple similar threads but was not able to fix this issue, any suggestions and examples would be appreciated!
The text was updated successfully, but these errors were encountered:
Thankyou for the quick response and the test @mdmintz,
Was able to pass the captcha with with SB(uc=True, test=True) as sb: via sb.uc_gui_click_captcha() and sb.uc_gui_handle_captcha() after resolving X11 dependency issues in my local environment. Using a fresh server also helped to not get blocked right off the bat.
Attaching some steps that helped me fix the X11 conflicts for any future readers:
Hi, I am using a Headless Linux Server from Azure to bypass a captcha which requires me to click the cloudflare captcha box,
Then It cannot bypass the captcha page. I also cannot use:
sb.uc_gui_click_captcha()
sincePyAutoGUI can't be used in headless mode
.sb.uc_gui_click_captcha()
by making headlessFalse
:SB(uc=True, headless=False, incognito=True) as sb:
, I get:Even setting:
SB(uc=True, headless=False, incognito=True, xvfb=True) as sb:
results in the same X11 display failed error even though I have manually verified having it.NOTE: Browser was installed via
sudo apt install google-chrome-stable
What can I do to bypass this captcha on my headless linux machine? I have read multiple similar threads but was not able to fix this issue, any suggestions and examples would be appreciated!
The text was updated successfully, but these errors were encountered: