Skip to content

books discover: "In library" filter auto-pages into the 30/min discover rate limit, shows as "Open Library could not be reached" #704

Done

Description

@meatposes

Description

on the books page, audiobooks tab, clicking In library (or Not yet) blows through the per-user discover rate limit and the page shows "Book discovery is unavailable right now. Open Library could not be reached." open library is fine, it's a 429 from seerrng itself.

looks like the library filter is client side. when fewer than 20 items match, the list keeps fetching the next page on its own, up to 10 pages (eh.length<20 ... es<10 in chunk 9505). /discover/books is limited to 30 req / 60 s per user (EXTERNAL_DISCOVER_RATE_LIMIT). with a small library nothing ever reaches 20, so every click is ~10 requests and 2-3 clicks plus the normal page load hits the limit.

my case: bookshelf audiobook catalogue has 1,804 titles, 3 of them in library. none of the 3 are on page 1 of the default sort, so In library pages through all 10 and then everything after that is 429 for up to a minute.

same pattern as #696 (per-card fetches vs the metadata limit), just on the books discover limiter.

ideas: filter availability server side for books, or stop the auto-paging when the response is 429 / count auto-pages against the limit. the error card should probably say rate limited instead of open library.

Version

v3.72.38

Steps to Reproduce

  1. bookshelf configured as the audiobook service, large catalogue, only a few titles with files
  2. books page, audiobooks tab
  3. click In library, then All, then In library again
  4. "Book discovery is unavailable right now. Open Library could not be reached."
  5. GET /api/v1/discover/books?format=audiobook&page=1 now returns 429 with RateLimit-Limit: 30, RateLimit-Remaining: 0

Logs

no server error logged, the 429 comes from the express-rate-limit middleware on /discover/books. response headers:

HTTP/1.1 429 Too Many Requests
RateLimit-Policy: 30;w=60
RateLimit-Limit: 30
RateLimit-Remaining: 0

Platform

desktop

Database

SQLite (default)

Device

desktop

Operating System

linux (docker)

Browser

chrome

Activity

  1. github-actions commented on Nov 19, 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