fix(browser): bump fetch wait 2500→6000ms so avito listings hydrate (#905) — migration proven #912
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
вторичка
ИРД
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#912
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/905-browser-wait-ms"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The actual root cause (found by prod SSH debug)
The camoufox fetch returned a 274KB generic avito shell with 0 listings — but it was not a block: status 200, correct
final_url, no captcha/datadome/firewall markers, proxy active. A direct camoufox run in the prod browser container (headless=True + mobileproxy) with a 5s wait returned the full SERP: 3.2MB, priceDetailed=50.Avito hydrates the SERP listings into the DOM client-side after
domcontentloaded. At the oldBROWSER_WAIT_MS=2500thepage.content()snapshot caught only the pre-hydration shell → 0 listings. 5–6s → full data.Fix
BROWSER_WAIT_MSdefault 2500 → 6000 (5s proven full + 1s margin);config.py browser_wait_ms2500 → 6000 to match. Tunable via envBROWSER_WAIT_MS.This is the last blocker — the whole camoufox + mobileproxy migration works end-to-end (real avito data, beating the curl_cffi soft-block). NOT headless detection (headless=True returns real data), so the earlier xvfb/
headless=virtualidea is unnecessary and abandoned.Verify after deploy
Expect:
priceDetailed~50,bytes~3.2MB,firewall 0.Dormant —
scraper_fetch_modestillcurl_cffi. Refs #905, #883