Skip to content

Playback hangs when YouTube assigns a stream node this machine cannot reach #36

Closed

Description

@mjaverto

Version

0.3.1

System

No response

Package

Built from source (macOS arm64)

System

macOS, arm64

What happened

Playback stalled on every track for about two hours. Restarting the app did not help.

YouTube assigned this address a cache node the machine cannot reach. Both the guest player request and yt-dlp return URLs on rr1---sn-8pxuuxahv1-h2hz.googlevideo.com and rr2---sn-8pxuuxahv1-h2hs.googlevideo.com. These names resolve (same answer from the system resolver, 8.8.8.8 and 1.1.1.1) to addresses inside a mobile network in another country. TCP 443 and ping to them time out. The other nodes named in the same URLs' mn= parameter (sn-8xgp1vo-*) answer in about 30 ms.

Refryt does not try those other nodes:

  1. The guest probe fails after 10 s, and the chain trips the guest breaker for 10 minutes.
  2. yt-dlp's URL goes to mpv, which waits about 30 s (Timeout was reached) per track, then skips to the next.

Expected: use a node from mn= that answers.

A fix is up as a pull request: #35

Log

WARN refryt_resolve::chain: resolver failed resolver="guest" error="guest stream for VpYEBfOb0sQ: the stream did not answer: error sending request for url (https://rr1---sn-8pxuuxahv1-h2hz.googlevideo.com/videoplayback?…
WARN refryt_resolve::chain: resolver failed repeatedly; skipping it until the cooldown elapses resolver="guest" cooldown_secs=600
WARN refryt::player: mpv: error: Timeout was reached source="curl"
WARN refryt::player: mpv: Failed to open https://rr1---sn-8pxuuxahv1-h2hz.googlevideo.com/videoplayback?… source="stream"
  • I looked over the log and removed anything private. I did not attach browser.json or oauth.json.

Log

Before posting

  • I looked over the log and removed anything private. I did not attach browser.json or oauth.json.

Activity

  1. added
    bug
    on Nov 16, 2026
  2. mjaverto commented on Nov 16, 2026

    @mjaverto
    ContributorAuthor

    Reviewed and updated PR #35; review fixes are pushed.

    • Fixed buffered-stream timeout regressions, stale cached playback replacing a newer selection, and the shared connection cap affecting guest resolution.
    • Added local HTTP mirror/expiry coverage and a regression where a connected primary withholds headers. Local macOS checks, both resolver feature sets, Windows GNU cross-target Clippy, and playback smokes pass.
    • PR is open and ready for review, with a closing link to this issue. Nothing merged.
    • Upstream CI needs maintainer approval for this forked PR. Current account has read-only upstream access; no remote CI pass is claimed.
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