Skip to content

Web subtitle handler swallows ListDownloadedSubtitles errors and returns 404 (masks real failures) #248

Closed

Description

@fluxis

Summary

Problem:
Subtitles fail to appear on the screen when selecting a subtitle track while watching a movie on the web player., but works in infuse.

Steps to Reproduce:

Open the web client and navigate to a movie with available subtitle tracks.

Press play to start the video.

Open the player's subtitle menu during playback.

Select a subtitle track.

Resume playback and observe the video.

Expected:
The selected subtitles should immediately begin displaying on the screen in sync with the video.

Actual:
The subtitles do not get displayed at all, even though the menu indicates that the subtitle track has been successfully selected.

Platform:

Web Client

Version
659e62a Docker

Reply digest

The web player intermittently fails to render a selected subtitle track (reported in Chrome; worked in Safari/Infuse; the reporter's instance later self-resolved). Root cause located in code: the stream handler ignores errors from listing downloaded subtitles and falls through to a generic 404, so a real DB/object-store failure is reported to the client as 'subtitle not found' with no server-side signal — which makes it look intermittent and hard to diagnose. Originally triaged cannot-reproduce; reopened as confirmed after locating the latent cause.

Code references

Verified against origin/main on 2026-06-29. Suggested: log the error and return 500 (or serve the track by index) instead of masking it as a 404.

  • internal/api/handlers/stream.go:242-243: ListDownloadedSubtitles error is swallowed by if err == nil (not logged, not surfaced)
  • internal/api/handlers/stream.go:277: control falls through to writeError(404, 'Subtitle track not found'), turning an internal error into a 404

Attachments

Source

Imported from Discord:

Activity

  1. added theissue type on Jun 29, 2026
  2. added a commit that references this issue on Jul 1, 2026
    86adb6a
  3. fluxis commented on Jul 3, 2026

    @fluxis
    ContributorAuthor

    💬 bulderi in Discord:

    still not solved for me, but the subtitles did come back after i had paused it for close to 5 min

  4. added a commit that references this issue on Jul 10, 2026
    1e8f79f
  5. fluxis commented on Jul 18, 2026

    @fluxis
    ContributorAuthor

    💬 spoked in Discord:

    this is still an issue

  6. fluxis commented on Jul 18, 2026

    @fluxis
    ContributorAuthor

    💬 spoked in Discord:

    happens to me sometimes too..

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

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions