Skip to content

crawl/sitemap-valid: guessed sitemap paths on a catch-all server fail with Unknown sitemap format #670

Closed

Description

@nc9

Summary. On a server that returns HTML with a 200 for every path (a catch-all or soft-404 site), crawl/sitemap-valid fails with Unknown sitemap format for each of the guessed sitemap paths it probes (8 on the fixture), even though the site has no sitemap. The check reports sitemap errors the site never published.

Seen on 0.0.108 with a local catch-all fixture. The sitemap parser is in packages/crawler/src/sitemaps.ts (the message comes from around line 147).

Acceptance Criteria

  • A guessed sitemap path that returns HTML (or any non-sitemap content type with no XML or gzip body) is treated as "no sitemap here", not as an invalid sitemap.
  • A sitemap declared in robots.txt that returns HTML still fails with a clear message, because the site claimed it exists.
  • A real sitemap at a guessed path is still parsed and validated.
  • A test covers the catch-all fixture, a declared-but-HTML sitemap and a real guessed sitemap.

Activity

  1. added
    bug
    P3
    size: S
    on Oct 11, 2026
  2. nc9 commented on Oct 12, 2026

    @nc9
    ContributorAuthor

    Fixed in # and merged to main. Every acceptance criterion is met per the PR description, with before and after evidence from the CLI on local fixtures, tests that fail on the old code, and review comments triaged. Criteria ticked.

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

    P3bugsize: S

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions