Skip to content

beholder: クロスホスト redirect 後にネットワーク切断リトライが走らない #990

Backlog

Description

@YusukeHirao

As is

Scraper#fetchData(@d-zero/beholder)で、ナビゲート先ホストがリクエスト URL と異なる場合(例: https://example.com → https://www.example.com)に isExternal = true となり、切断判定(getDisconnectionFailuresForPage / 旧 findDisconnectionFailures)の前に title-only で return する。

そのため最終ホスト上の同一ホストサブリソースが net::ERR_CONNECTION_RESET 等で失敗しても、ページ全体のリトライが発動しない。

To be

クロスホスト redirect 後も、最終ページホストを基準にネットワーク切断判定・リトライできる(または、そのパスを意図的に対象外とするなら契約として明記する)。

Why

#989 で同一ホスト切断判定を既定にしたあとでも、apex → www のようなよくある redirect では切断リトライ経路に到達しない。到達できた最終ホストの一時的回線断を取りこぼす。

How

原因箇所: packages/@d-zero/beholder/src/scraper.ts の destUrl.hostname !== url.hostname で isExternal 化したあとの early return。

案: redirect 後も内部ページとして扱う条件を見直す、または external 経路でも最終ホスト向けの切断判定だけ走らせる。

Activity

  1. added
    bug
    on Dec 2, 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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions