vvanglro / cf-clearance

Purpose To make a cloudflare v2 challenge pass successfully, Can be use cf_clearance bypassed by cloudflare, However, with the cf_clearance, make sure you use the same IP and UA as when you got it.
https://github.com/vvanglro/cf_clearance
353 stars 58 forks source link

Timeout 30000ms exceeded. #48

Closed yanxiang-wang closed 1 year ago

yanxiang-wang commented 1 year ago

I borrow some codes from the Dockerfile. And I found when in headless mode, there is alway Timeout 30000ms exceeded. errors. And then, I tried with xvfb-run python xx.py and keep headless=False, it works sometimes, which is not stable.

Also, I tried the code in my Mac-Air M1. The headless=False works very good. But after I changed to headless, the whole program stopped and show Timeout 30000ms exceeded. errors.

yanxiang-wang commented 1 year ago

Sorry, I didn't see the notice that require "headless=False"

vvanglro commented 1 year ago

Sorry, I didn't see the notice that require "headless=False"

About headless: https://github.com/vvanglro/cf-clearance#warning

The page.goto method defaults to a 30s timeout. My guess is your network problem.