Skip to content

Gogs pagination API breaks because of fatal repos

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


Migrated from T4423 (view on Phabricator)