[Bug]: Docker requests can no longer specify deep crawl params
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
調査の方向性
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 の本文から書いたものです。
説明
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_chainwith params e.g. URL pattern filtersurl_scorerwith params e.g. keywordsmax_pagesandmax_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
- スター
- 84.5k
- フォーク
- 8.7k
- 平均マージ
- 3日 20時間
- マージ済み PR(30日)
- 15
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
unclecode/crawl4ai のほかの issue
-
🐞 Bug 🩺 Needs Triage
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
unclecode/crawl4ai#2319 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: Reusing BFSDeepCrawlStrategy leaks the previous crawl's max_pages budget into a fresh runオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
unclecode/crawl4ai#2309 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
unclecode/crawl4ai#2147 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
unclecode/crawl4ai#2123 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
unclecode/crawl4ai の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
conda-forge/conda-build-feedstock#289 · コメント 1 件 · リアクション 1 件 ·
-
`pulptest` no longer works in 4.0.0: `ImportError: Start directory is not importable: 'pulp/tests'`オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
remove reddit feedsオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
TomCasavant/ohio-sites#224 ·