Skip to content

Name non-HTML routes instead of a raw ERR_ABORTED #57

Closed

Description

@tmashara

What
When a route doesn't serve HTML (a PDF, a download, an image), fail it with a named error such as /report.pdf: server sent application/pdf, not an HTML page instead of a raw net::ERR_ABORTED or a screenshot of the browser's PDF viewer.

Why
Routes from a sitemap (#46) or a crawl often include files. The raw navigation error makes the agent investigate a server problem that isn't one. yanfishel/visual-regression-test does this in apps/worker/src/capture.ts (navigateToPage).

How
After goto, check the main response's content-type. On ERR_ABORTED, probe the URL with a HEAD request and use its content-type in the message. This is a route error (exit 3), and #46 can drop such URLs before the run by extension.

Activity

  1. added
    enhancement
    on Oct 29, 2026
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions