Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[Bug]: Docker requests can no longer specify deep crawl params

已关闭
#2,308 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
55/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
docker, python
领域
api, backend, security

调研方向

Start by reproducing the 400 response from the Docker /crawl endpoint when deep_crawl_strategy is supplied, then trace the request validation and compare it with the limits in deploy/docker/governor.py. Check how filter_chain, url_scorer, max_pages, and max_depth are handled. Done means supported deep-crawl parameters work through Docker while configured safety limits remain enforced.

由索引模型根据 Issue 内容生成。

描述

⚙ Done 🐞 Bug
crawl4ai version

0.9.4

Expected Behavior

When calling the Docker /crawl endpoint I should be able to specify:

  • Deep or single-page crawl
  • filter_chain with params e.g. URL pattern filters
  • url_scorer with params e.g. keywords
  • max_pages and max_depth (clamped to a configurable limit to prevent DoS)
Current Behavior

Since 0.9.0 any requests with deep_crawl_strategy are rejected with 400.

This removes a ton of functionality that I'm currently relying on - for example:

  • If I want to conditionally run single-page vs deep crawls, I would now need to run two docker containers in parallel, each statically configured to do each type.
  • I currently dynamically generate URL path filters based on varying input URLs. This is now impossible because they cannot be defined statically.

According to the changelog, this was removed from the API to improve security. However, I believe this could be re-added with no increased security risk, beyond clamping a few values (e.g. max pages) to a server-configurable limit to prevent DoS - which seems to already be implemented in deploy/docker/governor.py.

An alternative would be to allow users to opt-out of such security limitations, for example in environments where they are already validating inputs before calling the API.

OS

Linux

Python version

3.12

Browser

No response

Browser version

No response

Error logs & Screenshots (if applicable)

No response

主要语言
Python
星标
86.4k
派生
9k
平均合并
3 天 5 小时
30 天内合并 PR
23

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

unclecode/crawl4ai 的其他 Issue

查看 unclecode/crawl4ai 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。