Skip to content

audit: a 200 page with an empty body is dropped silently before the rules run #1314

Closed

Description

@nc9

A page the server answers with 200 and a zero-byte body is dropped from the audit before any rule runs. parsePageRecord (packages/audit-engine/src/adapter.ts, apps/cli/src/audit/adapter.ts), getParsedPages and isAuditablePage (packages/audit-engine/src/page-features.ts) all test !page.html, so an empty string reads as "no html". The page gets no findings and no not-evaluated entry, and the report says nothing about it. A soft failure of the site (an empty response served as 200) is invisible.

Found while fixing #1270 (pages with no markup no longer throw in DOM rules); non-empty markup-free bodies are audited, empty ones are not.

Acceptance Criteria

  • A crawled 200 HTML page with an empty body is reported: either audited (findings such as missing title and h1 apply) or listed once with a visible reason such as "empty response", never silently absent.
  • The page counts the same way in totalPages, coverage and scoring whichever is chosen, and the choice is documented.
  • A test crawls a fixture with a zero-byte 200 page and asserts the report mentions it.

Activity

  1. added
    bug
    size: S
    on Oct 30, 2026
  2. added theissue type on Oct 30, 2026
  3. WilliamK112 commented on Oct 30, 2026

    @WilliamK112
    Contributor

    I can take this. I will keep empty 200 HTML pages in the audit pipeline, add coverage that proves rules run and the page is counted in the report, document the chosen audited-page behavior where appropriate, and keep the fix scoped to empty-body handling.

  4. nc9 commented on Oct 30, 2026

    @nc9
    ContributorAuthor

    Shipped in v0.0.144 (commits c13e084, 522a660, 54be2fc, af4d291). Checked every acceptance criterion against current main: a 200 page with an empty body is audited and counted.

    nik

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsize: S

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions