Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow users to configure trackers to bypass HTTPS errors #49

Open
azasypkin opened this issue Jul 6, 2024 · 0 comments
Open

Allow users to configure trackers to bypass HTTPS errors #49

azasypkin opened this issue Jul 6, 2024 · 0 comments
Labels
Category: Enhancement New feature or request Component: Utility: Web Scraping Issues related to Web Scraping utility

Comments

@azasypkin
Copy link
Member

azasypkin commented Jul 6, 2024

Summary

Sometimes users want to track content or resources from a website that has an invalid, expired, or self-signed certificate, but Playwright, which the Web Scraper component internally relies on, fails for untrusted certificates by default.

"XXX" tracker failed to check for content changes
There was an error while checking content: Failed to load page "https://xxxx.xx/": page.goto: net::ERR_CERT_DATE_INVALID at https://xxxx.xx/ Call log: - navigating to "https://xxxx.xx/", waiting until "load"

We should introduce an option to ignore such errors if the user explicitly opts into this behavior.

  const context = await browser.newContext({
    extraHTTPHeaders: options.headers,
    bypassCSP: false,
    userAgent: options.userAgent,
    ignoreHTTPSErrors: options.ignoreHTTPSErrors <---- provided by tracker
  });
  const page = await context.newPage();
@azasypkin azasypkin added Category: Enhancement New feature or request Component: Utility: Web Scraping Issues related to Web Scraping utility labels Jul 6, 2024
@azasypkin azasypkin added this to the 1.0.0-beta.2 (OSS release) milestone Jul 6, 2024
@azasypkin azasypkin added this to Roadmap Jul 6, 2024
@azasypkin azasypkin moved this to 📋 Not started in Roadmap Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Enhancement New feature or request Component: Utility: Web Scraping Issues related to Web Scraping utility
Projects
Status: 📋 Not started
Development

No branches or pull requests

1 participant