Page MenuHomeSoftware Heritage

Gogs pagination API breaks because of fatal repos
Closed, MigratedEdits Locked

Description

Step to reproduce:

Expected behavior:
https://try.gogs.io/api/v1/repos/search?page=17 should also return 200 and the relevant repos.

After some experiments with the page size, I discovered that exactly the repo at position 162 is the culprit i.e. only https://try.gogs.io/api/v1/repos/search?page=162&limit=1 returns 500 error. There's something wrong with this repo and the server isn't able to handle it.

Upstream issue link: https://github.com/gogs/gogs/issues/7124

Event Timeline

KShivendu created this task.
KShivendu created this object in space S1 Public.
ardumont raised the priority of this task from Low to Normal.Aug 4 2022, 3:58 PM
ardumont added projects: Archive coverage, Lister.
ardumont added a subscriber: ardumont.

That's been worked around in the lister to skip those 500 which were breaking the pagination listing.
There is no reply to the upstream bug yet.

Let's close and reopen if need be.