Page MenuHomePhabricator

Deepcat search stops loading additional results
Open, Needs TriagePublic3 Estimated Story PointsBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Enter a deepcat query at Commons with enough results to show the "Load more" button at the bottom of the page (example)
  • Scroll to the bottom of the page to load more results

What happens?:
Eventually additional results stop being loaded: the loading icon at the bottom of the page changes into the false "No more results found" message and "Deep category search SPARQL query failed" error appears underneath the search box. This can happen on the very first attempt to load more results or after several successful ones . The behavior is unpredictable, but failure seems to be more likely the longer you wait between attempts - you'll get more results if you immediately start scrolling to the bottom of the page than if you behave "naturally".

What should have happened instead?:
All results get loaded when "No more results found" message is shown.

Other information (browser name/version, screenshots, etc.):

Screenshot 2025-11-18 at 21-18-20 Search media - Wikimedia Commons.png (340×1 px, 479 KB)

Screenshot 2025-11-18 at 21-18-40 Search media - Wikimedia Commons.png (267×1 px, 112 KB)

Details

Event Timeline

Shouldn't have anything to do with time between requests, Deep category search SPARQL query failed mostly means one of the backend services had an error and the frontend should retry. It looks like instead the frontend is treating an error as the end of results.

In a quick test i was able to scroll through the entire 1842 result list for the example query, but that doesn't mean it never fails.

pfischer subscribed.

We'll try to work around this with a 10min cache.

pfischer set the point value for this task to 3.Jan 12 2026, 4:53 PM

Change #1230442 had a related patch set uploaded (by Ebernhardson; author: Ebernhardson):

[mediawiki/extensions/CirrusSearch@master] Cache SPARQL responses to deepcat

https://gerrit.wikimedia.org/r/1230442

Change #1230442 merged by jenkins-bot:

[mediawiki/extensions/CirrusSearch@master] Cache SPARQL responses to deepcat

https://gerrit.wikimedia.org/r/1230442