Skip to content

Use custom SSL context to avoid 403's from Cloudflare#72

Closed
Ch00k wants to merge 1 commit into
mainfrom
fix-bit-requests
Closed

Use custom SSL context to avoid 403's from Cloudflare#72
Ch00k wants to merge 1 commit into
mainfrom
fix-bit-requests

Conversation

@Ch00k

@Ch00k Ch00k commented Dec 22, 2025

Copy link
Copy Markdown
Owner

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread web/events/http.py
Comment on lines 82 to +85
super().__init__(*args, **kwargs)

self.name = name
self.verify = verify

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Pass SSL context into AsyncClient init

The new verify parameter defaults to a custom SSL context, but super().__init__(*args, **kwargs) is called without verify, and the subsequent self.verify = verify assignment does not reconfigure the already-created transport in httpx. As a result, requests made by this client will still use the default TLS configuration, so the Cloudflare-bypass change has no effect when the client is constructed without an explicit verify kwarg. This matters whenever you rely on the custom TLS fingerprint to avoid 403s.

Useful? React with 👍 / 👎.

Comment thread pyproject.toml
homepage = "https://mottle.it"
repository = "https://github.com/Ch00k/mottle"
requires-python = ">=3.12,<3.13"
requires-python = ">=3.14"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep Python requirement compatible with Docker base

The project now declares requires-python = ">=3.14", but the Dockerfile still builds on python3.12 for both builder and runtime (Dockerfile:1,19). That combination causes uv sync/pip to reject the project during image builds, so the container will fail to build in current environments. Unless the base images are updated to 3.14, this requirement bump breaks deployments.

Useful? React with 👍 / 👎.

@Ch00k Ch00k closed this Dec 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant