Skip to content

Parity: retry offline subtitle sidecars answered 503 with Retry-After (from Silo-Server/silo-server#4318) #940

Open

Description

@Quick104

Silo Server answers a subtitle sidecar request with 503 and Retry-After: 5 when the serving node already runs as many subtitle demuxes as it allows (Silo-Server/silo-server#4318), and already does so when its whole-track index reads are full. Streaming playback handles this: MediaLoadRetryPolicy retries a 503 after Retry-After within its 90-second window. Offline downloads don't: a sidecar fetch that gets a 503 is dropped, and the download completes without that subtitle.

What users should get: a download's subtitle sidecar answered 503 is fetched again after the Retry-After delay, a few times, before it is skipped; and a sidecar that was still skipped can be fetched again later, for example by the periodic subtitle refresh.

Where it happens on origin/main:

  • android-shared/.../downloads/OfflineTrackAssetFetcher.kt: downloadSubtitle throws on any non-200 and fetchSubtitle catches it, deletes the partial file and returns null. Only the manifest request retries.
  • OfflineSubtitleRefreshWorker and subtitlesWithNewRevision (OfflineTracks.kt) only revisit subtitles that were saved, so a dropped sidecar is never fetched again.

Server side: playback.ErrSubtitleReadsBusy and SubtitleReadsRetryAfter in internal/playback/subtitle_source.go; the download route maps it to a dependency_unavailable problem with Retry-After in internal/apiv2/download_registry.go.

AI disclosure: drafted by Claude Code (claude-opus-5-5) from a read of origin/main; not run on a device.

Activity

  1. added
    bug
    impact: playback
    priority: P2
    triaged
    on Nov 15, 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

    bugimpact: playbackpriority: P2triaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions