Skip to content

fix(scrape): raise default max_body_bytes from 1 MiB to 4 MiB#1130

Merged
bug-ops merged 1 commit intomainfrom
fix/scrape-max-body-bytes
Mar 2, 2026
Merged

fix(scrape): raise default max_body_bytes from 1 MiB to 4 MiB#1130
bug-ops merged 1 commit intomainfrom
fix/scrape-max-body-bytes

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Mar 2, 2026

Summary

  • Raises default_max_body_bytes from 1 048 576 (1 MiB) to 4 194 304 (4 MiB) in ScrapeConfig
  • Fixes "response too large" errors when scraping documentation pages that exceed 1 MiB of raw HTML
  • Updates insta snapshot (config_default_snapshot) and all affected unit test assertions

Test plan

  • cargo nextest run --workspace --lib --bins — all 3374 tests pass
  • cargo clippy --workspace -- -D warnings — zero warnings
  • cargo +nightly fmt --check — clean

Pages like documentation sites commonly exceed 1 MiB of raw HTML.
The previous limit caused spurious "response too large" errors on
legitimate scrape requests. 4 MiB covers most real-world pages while
still preventing unbounded memory usage.

Updated insta snapshot and all affected unit tests.
@github-actions github-actions bot added rust Rust code changes core zeph-core crate bug Something isn't working size/XS Extra small PR (1-10 lines) labels Mar 2, 2026
@bug-ops bug-ops enabled auto-merge (squash) March 2, 2026 01:52
@bug-ops bug-ops merged commit f963561 into main Mar 2, 2026
25 checks passed
@bug-ops bug-ops deleted the fix/scrape-max-body-bytes branch March 2, 2026 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working core zeph-core crate rust Rust code changes size/XS Extra small PR (1-10 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant