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
{{ message }}
Repository navigation
AdaptivePlaywrightCrawler: the inner crawlers' options are rejected, and the HTTP-only attempt always ignores TLS errors #4260
Migrating WCC to v4. We pass ignoreTlsErrors, additionalMimeTypes and ignoreIframes to every crawler type. The adaptive crawler rejects them, so we have to leave them out, and some of our settings quietly stop applying. #4219 handles navigationTimeoutSecs; this issue is about the rest.
Which package is this bug report for?
@crawlee/playwright (AdaptivePlaywrightCrawler)
Issue description
The constructor only accepts BasicCrawlerOptions, so options that belong to the inner crawlers fail with Unrecognized key: "…" in BasicCrawlerOptions:
ignoreTlsErrors and additionalMimeTypes (HTTP crawler);
ignoreIframes (Playwright crawler).
ignoreTlsErrors can't be worked around either. The inner CheerioCrawler is built from ...rest, so it keeps the HTTP crawler's default ignoreTlsErrors: true and sends it with every request. A per-request flag can only turn ignoring on, so httpClient: new ImpitHttpClient({ ignoreTlsErrors: false }) has no effect. The HTTP-only attempt accepts a self-signed certificate that the same client rejects in a plain CheerioCrawler.
Expected behavior: these options are accepted and forwarded to the inner crawlers, the way #4088 forwarded the browser options and #4219 forwards navigationTimeoutSecs.
Unrecognized key: "ignoreTlsErrors" in `BasicCrawlerOptions`
Unrecognized key: "additionalMimeTypes" in `BasicCrawlerOptions`
Unrecognized key: "ignoreIframes" in `BasicCrawlerOptions`
handled over HTTP despite the self-signed certificate
A CheerioCrawler with the same httpClient and ignoreTlsErrors: false fails that request.
Activity