Skip to content

Commit 991f174

Browse files
committed
fix: attempting to detect chrome error pages and trigger retry logic
1 parent 7e9d7f1 commit 991f174

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

brozzler/worker.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,9 @@ def brozzle_page(
372372
)
373373
outlinks.update(browser_outlinks)
374374
status_code = browser.websock_thread.page_status
375-
if status_code in [502, 504]:
375+
if status_code in [502, 504] or (
376+
page.redirect_url and page.redirect_url.startswith("chrome-error:")
377+
):
376378
raise brozzler.PageConnectionError()
377379
except brozzler.PageInterstitialShown:
378380
page_logger.info("page interstitial shown (http auth)")

0 commit comments

Comments
 (0)