Skip to content

PersiusNG Discover cards fetch details per card and hit the 60/min metadata rate limit (429) #696

Closed

Description

@angelsantosa

Description

With the default PersiusNG interface theme, scrolling a Discover list (e.g. Discover › TV or Discover › Movies) quickly uses up the per-user externalMetadataRateLimit (60 requests / 60 s, shared by /movie, /tv, /music, /person, /collection, …). The browser then gets 429 Too Many Requests ("Too many requests, please try again later.") on /api/v1/tv/<id> and /api/v1/movie/<id>. The user's next detail page or request modal can then hit 429 for up to a minute.

Cause, as far as I can tell: in the Persius layout, Common/ListView renders each result as a TmdbTitleCard, and TmdbTitleCard fetches /api/v1/<type>/<id> for every card once it is in view (useInView with rootMargin: '100% 0px', so a screen ahead too). In the SeerrOrig layout the same lists render TitleCard from the list payload and make no per-card detail calls.

Measured on v3.72.36 with a headless Chromium, logged in as an admin, opening /discover/tv and scrolling 8 × 900 px:

Interface theme /api/v1/{tv,movie}/<id> calls 429 responses
PersiusNG (default) 78 18
SeerrOrig 0 0

Possible fixes: have the Persius cards use the data already in the discover payload (as TitleCard does), batch the lookups, or exempt/raise the limit for these cache-backed detail reads.

A related point: there is no server-wide setting for the default interface theme (DEFAULT_INTERFACE_THEME_ID is hard-coded to persiusNG), and an admin cannot change another user's theme (/user/:id/settings/interface-theme is isOwnProfile() only). So an admin who hits this cannot switch their users to SeerrOrig.

Version

v3.72.36 (also seen on v3.72.35)

Steps to Reproduce

  1. Use the default PersiusNG interface theme.
  2. Open Discover › TV (/discover/tv) and scroll down for a few seconds.
  3. Watch the network tab: one GET /api/v1/tv/<id> per card, and after ~60 of them the responses are 429 with body Too many requests, please try again later. (ratelimit-policy: 60;w=60).
  4. Switch the interface theme to SeerrOrig and repeat: no per-card detail requests, no 429.

Logs

GET /api/v1/tv/1399 -> 429, 42 B body "Too many requests, please try again later."
ratelimit-limit: 60
ratelimit-policy: 60;w=60
(nothing is logged server-side; express-rate-limit answers before the route)

Platform

desktop

Database

SQLite (default)

Device

Mac

Operating System

macOS

Browser

Firefox (also reproduced with headless Chromium)

Additional Context

Docker image ghcr.io/snapetech-org/seerrng:v3.72.36 behind a reverse proxy; SEERR_TRUSTED_PROXIES is set correctly, and the limiter key here is user:<id>, so this is one user's own browsing, not shared proxy traffic.

Search Existing Issues

  • Yes, I have searched existing issues.

Code of Conduct

  • I agree to follow SeerrNG's Code of Conduct

Activity

  1. github-actions commented on Nov 15, 2026

    @github-actions

    Possible duplicate detected

    This issue may be a duplicate of the following (detected via semantic similarity + LLM review):

    A maintainer will review this. If this is not a duplicate, no action is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions