Skip to content

feat!: Add ignore_tls_errors to HTTP clients, crawlers and ProxyInfo - #2396

Open
Mantisus wants to merge 1 commit into
apify:v2from
Mantisus:ignore-tls-errors
Open

Mantisus wants to merge 1 commit into
apify:v2from
Mantisus:ignore-tls-errors

Conversation

@Mantisus

@Mantisus Mantisus commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Adds ignore_tls_errors. TLS certificates are verified by default, and the flag turns the verification off:

  • ImpitHttpClient, HttpxHttpClient and CurlImpersonateHttpClient take it for all their requests. It replaces the verify argument of ImpitHttpClient and HttpxHttpClient, and a verify passed to any client is ignored with a warning. HttpxHttpClient no longer takes a CA bundle or an SSLContext.
  • send_request and context.send_request take it for a single call.
  • ProxyInfo has a new ignore_tls_errors field for a proxy that intercepts HTTPS traffic. The HTTP clients and the browsers of PlaywrightCrawler ignore TLS errors for the requests sent through such a proxy. StagehandCrawler doesn't.

A custom HTTP client gets the flag as a new ignore_tls_errors argument of _fetch. The v2 upgrade guide describes the migration.

✍️ Drafted by Claude Code

@github-actions github-actions Bot added the t-tooling Issues with this label are in the ownership of the tooling team. label Nov 4, 2026
@Mantisus Mantisus changed the title feat(http-clients)!: Replace verify with ignore_tls_errors feat!: Add ignore_tls_errors to HTTP clients, crawlers and ProxyInfo Nov 4, 2026
@Mantisus Mantisus self-assigned this Nov 4, 2026
@Mantisus
Mantisus marked this pull request as ready for review November 9, 2026 23:59
@Mantisus
Mantisus requested a review from vdusek November 9, 2026 23:59

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant